diff options
author | Fujii Masao <fujii@postgresql.org> | 2020-07-08 21:24:34 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2020-07-08 21:25:33 +0900 |
commit | a2b94693beb1d052f2b4935384dd6f7f47143669 (patch) | |
tree | 919188540600b47710fa2e6b399239b212e9d835 | |
parent | ea5737889f0586c2d46738bc52b97b86369f03e2 (diff) | |
download | postgresql-a2b94693beb1d052f2b4935384dd6f7f47143669.tar.gz postgresql-a2b94693beb1d052f2b4935384dd6f7f47143669.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
-rw-r--r-- | src/backend/access/transam/xlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index f5df1025134..ff738167087 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); |