aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2020-07-08 21:24:34 +0900
committerFujii Masao <fujii@postgresql.org>2020-07-08 21:24:34 +0900
commit654242fd81cfbdd229ec2a752a9f857a84cc039b (patch)
tree5f32bc920c42a8a9b68ba2f7c7e2cede42546438 /src
parenteb2c8a8f816b6c411047eeab7a326e8356a2c0a8 (diff)
downloadpostgresql-654242fd81cfbdd229ec2a752a9f857a84cc039b.tar.gz
postgresql-654242fd81cfbdd229ec2a752a9f857a84cc039b.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index c2feb925762..91d99c113c0 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -9601,7 +9601,7 @@ KeepLogSeg(XLogRecPtr recptr, XLogSegNo *logSegNo)
/* Cap by max_slot_wal_keep_size ... */
if (max_slot_wal_keep_size_mb >= 0)
{
- XLogRecPtr slot_keep_segs;
+ uint64 slot_keep_segs;
slot_keep_segs =
ConvertToXSegs(max_slot_wal_keep_size_mb, wal_segment_size);