pgsql: Fix calculation of how many segments to retain for wal_keep_segm - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix calculation of how many segments to retain for wal_keep_segm
Date
Msg-id E1UPC9O-0001tc-3o@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix calculation of how many segments to retain for wal_keep_segments.

KeepLogSeg function was broken when we switched to use a 64-bit int for the
segment number.

Per report from Jeff Janes.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/594041311c8263832258d35632aa3eebf9371fd1

Modified Files
--------------
src/backend/access/transam/xlog.c |    8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Simon Riggs
Date:
Subject: pgsql: Skip extraneous locking in XLogCheckBuffer().
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Avoid tricky race condition recording XLOG_HINT