projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68af375
)
Fix WAL file cutoff point calculation in pg_standby.
author
Heikki Linnakangas
<
[email protected]
>
Tue, 8 Jul 2008 15:11:58 +0000
(15:11 +0000)
committer
Heikki Linnakangas
<
[email protected]
>
Tue, 8 Jul 2008 15:11:58 +0000
(15:11 +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 e8597c69738a308a9fd66b5132fe3ed51cedc475..15dc3442049a2c020f8f8770074151402bc4c032 100644
(file)
--- a/
contrib/pg_standby/pg_standby.c
+++ b/
contrib/pg_standby/pg_standby.c
@@
-1,5
+1,5
@@
/*
- * $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.1
2 2008/05/17 01:28:21 adunstan
Exp $
+ * $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.1
3 2008/07/08 15:11:58 heikki
Exp $
*
*
* pg_standby.c
@@
-323,7
+323,7
@@
SetWALFileNameForCleanup(void)
if (seg_diff > seg)
{
log_diff++;
- seg = MaxSegmentsPerLogFile -
seg_diff
;
+ seg = MaxSegmentsPerLogFile -
(seg_diff - seg)
;
}
else
seg -= seg_diff;