From 9414cf95efcbc0d4df6d042c85399d9a69ae3b09 Mon Sep 17 00:00:00 2001 From: heikki Date: Tue, 8 Jul 2008 15:11:58 +0000 Subject: [PATCH] Fix WAL file cutoff point calculation in pg_standby. Patch by Simon Riggs, per bug report from Ferenc Felhoffer --- contrib/pg_standby/pg_standby.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c index b19032170f..b173d25a90 100644 --- a/contrib/pg_standby/pg_standby.c +++ b/contrib/pg_standby/pg_standby.c @@ -1,5 +1,5 @@ /* - * $PostgreSQL:$ + * $PostgreSQL$ * * * 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; -- 2.11.4.GIT