projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67ed677
)
Fix WAL file cutoff point calculation in pg_standby.
author
Heikki Linnakangas
<
[email protected]
>
Tue, 8 Jul 2008 15:12:04 +0000
(15:12 +0000)
committer
Heikki Linnakangas
<
[email protected]
>
Tue, 8 Jul 2008 15:12:04 +0000
(15:12 +0000)
Patch by Simon Riggs, per bug report from Ferenc Felhoffer
contrib/pg_standby/pg_standby.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_standby/pg_standby.c
b/contrib/pg_standby/pg_standby.c
index 9879348cc1b4f726e0ab72b6c0acef057bf866ea..5433985d2655dd29b57bc45e9a0f77a5a59026d6 100644
(file)
--- a/
contrib/pg_standby/pg_standby.c
+++ b/
contrib/pg_standby/pg_standby.c
@@
-320,7
+320,7
@@
SetWALFileNameForCleanup(void)
if (seg_diff > seg)
{
log_diff++;
- seg = MaxSegmentsPerLogFile -
seg_diff
;
+ seg = MaxSegmentsPerLogFile -
(seg_diff - seg)
;
}
else
seg -= seg_diff;