Skip to content

Commit a2b9469

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 ea57378 commit a2b9469

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy