projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f1787c
)
Correctly initialise shared recoveryLastRecPtr in recovery.
author
Simon Riggs
<simon@2ndQuadrant.com>
Fri, 13 Jan 2012 13:02:44 +0000
(13:02 +0000)
committer
Simon Riggs
<simon@2ndQuadrant.com>
Fri, 13 Jan 2012 13:02:44 +0000
(13:02 +0000)
Previously we used ReadRecPtr rather than EndRecPtr, which was
not a serious error but caused pg_stat_replication to report
incorrect replay_location until at least one WAL record is replayed.
Fujii Masao
src/backend/access/transam/xlog.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/transam/xlog.c
b/src/backend/access/transam/xlog.c
index 19ef66b5f82fe9860126473a6ee2a70f01560c48..ce659ec63d920bd29755aa393c55c600fe052d71 100644
(file)
--- a/
src/backend/access/transam/xlog.c
+++ b/
src/backend/access/transam/xlog.c
@@
-6407,7
+6407,7
@@
StartupXLOG(void)
*/
SpinLockAcquire(&xlogctl->info_lck);
xlogctl->replayEndRecPtr = ReadRecPtr;
- xlogctl->recoveryLastRecPtr =
Rea
dRecPtr;
+ xlogctl->recoveryLastRecPtr =
En
dRecPtr;
xlogctl->recoveryLastXTime = 0;
xlogctl->currentChunkStartTime = 0;
xlogctl->recoveryPause = false;