]> granicus.if.org Git - postgresql/commitdiff
Fix incorrect variable datatype
authorMagnus Hagander <magnus@hagander.net>
Tue, 28 Feb 2017 11:16:42 +0000 (12:16 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 28 Feb 2017 11:18:49 +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 91edd54e8a808bc24deda644dc2617b748346bfe..b3d45b74f369a620ac0ea6ab0bce34991a28d5d3 100644 (file)
@@ -8963,7 +8963,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);