aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2017-02-28 12:16:42 +0100
committerMagnus Hagander <magnus@hagander.net>2017-02-28 12:18:25 +0100
commit965956a03305fb8517c584ffffd37515344f4101 (patch)
treea788bc163dbbf1a415bd66837ce62eb4f1742ac0 /src/backend/access/transam/xlog.c
parentf97f4fc028ccc284683ba400a51d59e534901336 (diff)
downloadpostgresql-965956a03305fb8517c584ffffd37515344f4101.tar.gz
postgresql-965956a03305fb8517c584ffffd37515344f4101.zip
Fix incorrect variable datatype
Both datatypes map to the same underlying one which is why it still worked, but we should use the correct type. Author: Kyotaro HORIGUCHI
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-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 ce89efc1941..7a7e07a4752 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -9012,7 +9012,7 @@ KeepLogSeg(XLogRecPtr recptr, XLogSegNo *logSegNo)
/* then check whether slots limit removal further */
if (max_replication_slots > 0 && keep != InvalidXLogRecPtr)
{
- XLogRecPtr slotSegNo;
+ XLogSegNo slotSegNo;
XLByteToSeg(keep, slotSegNo);