summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2017-02-28 11:16:42 +0000
committerMagnus Hagander2017-02-28 11:20:35 +0000
commit016c9908347ed2ba7b9d7101c858ea7730b6c0b0 (patch)
tree5ca6cbafbf92afa3e8ad21fd7216685e1406a8d2
parent9b88f27cb42fe8ff59ddc75e29c005624b8850a2 (diff)
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
-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 50162739f8e..897358342db 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -9263,7 +9263,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);