Fix incorrect variable datatype
authorMagnus Hagander
Tue, 28 Feb 2017 11:16:42 +0000 (12:16 +0100)
committerMagnus Hagander
Tue, 28 Feb 2017 11:18:25 +0000 (12:18 +0100)
Both datatypes map to the same underlying one which is why it still
worked, but we should use the correct type.

Author: Kyotaro HORIGUCHI

src/backend/access/transam/xlog.c

index ce89efc19415496869eb34ba8f935041171a9103..7a7e07a4752f5113762cf67762c0e2dfae16b408 100644 (file)
@@ -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);