Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Patches > Bug fix for pg_...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3865 of 4088
Post > Topic >>

Bug fix for pg_standby keepfiles calculation

by simon@[EMAIL PROTECTED] (Simon Riggs) Jul 5, 2008 at 12:50 PM

--=-+ppb6ZsfoxwPp0i4Y0o8
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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 Sup****t

--=-+ppb6ZsfoxwPp0i4Y0o8
Content-Disposition: attachment;
filename=pg_standby_keepfiles_calc_bug.v1.patch
Content-Type: text/x-patch; name=pg_standby_keepfiles_calc_bug.v1.patch;
charset=UTF-8
Content-Transfer-Encoding: 7bit

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 -0000	1.12
--- contrib/pg_standby/pg_standby.c	5 Jul 2008 11:44:29 -0000
***************
*** 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;

--=-+ppb6ZsfoxwPp0i4Y0o8
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


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

--=-+ppb6ZsfoxwPp0i4Y0o8--
 




 2 Posts in Topic:
Bug fix for pg_standby keepfiles calculation
simon@[EMAIL PROTECTED]   2008-07-05 12:50:25 
Re: Bug fix for pg_standby keepfiles calculation
heikki@[EMAIL PROTECTED]   2008-07-08 18:13:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 9:40:12 CDT 2008.