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:20:35 +0100
commit016c9908347ed2ba7b9d7101c858ea7730b6c0b0 (patch)
tree5ca6cbafbf92afa3e8ad21fd7216685e1406a8d2 /src/backend/access/transam/xlog.c
parent9b88f27cb42fe8ff59ddc75e29c005624b8850a2 (diff)
downloadpostgresql-016c9908347ed2ba7b9d7101c858ea7730b6c0b0.tar.gz
postgresql-016c9908347ed2ba7b9d7101c858ea7730b6c0b0.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 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);