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:34 +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 e141c963461b7df6f35a4054758af780e1457c6d..948b08cd7db9d7b6bf4312e11d1ac95eb3e40549 100644 (file)
@@ -8965,7 +8965,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);