Skip to content

Commit 654242f

Browse files
committed
Fix incorrect variable datatype.
Since slot_keep_segs indicates the number of WAL segments not LSN, its datatype should not be XLogRecPtr. Back-patch to v13 where this issue was added. Reported-by: Atsushi Torikoshi Author: Atsushi Torikoshi, tweaked by Fujii Masao Discussion: https://postgr.es/m/ebd0d674f3e050222238a960cac5251a@oss.nttdata.com
1 parent eb2c8a8 commit 654242f

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9601,7 +9601,7 @@ KeepLogSeg(XLogRecPtr recptr, XLogSegNo *logSegNo)
96019601
/* Cap by max_slot_wal_keep_size ... */
96029602
if (max_slot_wal_keep_size_mb >= 0)
96039603
{
9604-
XLogRecPtr slot_keep_segs;
9604+
uint64 slot_keep_segs;
96059605

96069606
slot_keep_segs =
96079607
ConvertToXSegs(max_slot_wal_keep_size_mb, wal_segment_size);

0 commit comments

Comments
 (0)