Re: [PATCHES] Bug fix for pg_standby keepfiles calculation

2008-07-08 Thread Heikki Linnakangas

Simon Riggs wrote:

Fix minor bug in pg_standby, noted by Ferenc Felhoffer


Applied, thanks.

I couldn't find a bug report from Ferenc in the archives. Did he contact 
you personally?


--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

--
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches


[PATCHES] Bug fix for pg_standby keepfiles calculation

2008-07-05 Thread Simon Riggs
Fix minor bug in pg_standby, noted by Ferenc Felhoffer

Request immediate apply to CVS HEAD and 8.3

-- 
 Simon Riggs   www.2ndQuadrant.com
 PostgreSQL Training, Services and Support
Index: contrib/pg_standby/pg_standby.c
===
RCS file: /home/sriggs/pg/REPOSITORY/pgsql/contrib/pg_standby/pg_standby.c,v
retrieving revision 1.12
diff -c -r1.12 pg_standby.c
*** contrib/pg_standby/pg_standby.c	17 May 2008 01:28:21 -	1.12
--- contrib/pg_standby/pg_standby.c	5 Jul 2008 11:44:29 -
***
*** 323,329 
  			if (seg_diff > seg)
  			{
  log_diff++;
! seg = MaxSegmentsPerLogFile - seg_diff;
  			}
  			else
  seg -= seg_diff;
--- 323,329 
  			if (seg_diff > seg)
  			{
  log_diff++;
! seg = MaxSegmentsPerLogFile - (seg_diff - seg);
  			}
  			else
  seg -= seg_diff;

-- 
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches