aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2015-08-10 13:28:19 +0200
committerAndres Freund <andres@anarazel.de>2015-08-10 13:28:19 +0200
commitd4ad167d9577cca8c75fee329e2765d930e0c29f (patch)
treec97292afc057ea5b9c5d83a225672030fabca375 /src
parent68b5c08c3978a1ff76b4bc354bf892c7eb8df5c8 (diff)
downloadpostgresql-d4ad167d9577cca8c75fee329e2765d930e0c29f.tar.gz
postgresql-d4ad167d9577cca8c75fee329e2765d930e0c29f.zip
Fix copy & paste mistake in pg_get_replication_slots().
XLogRecPtr was compared with InvalidTransactionId instead of InvalidXLogRecPtr. As both are defined to the same value this doesn't cause any actual problems, but it's still wrong. Backpatch: 9.4-master, bug was introduced in 9.4
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/slotfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c
index bd4701f97df..83d06b2361a 100644
--- a/src/backend/replication/slotfuncs.c
+++ b/src/backend/replication/slotfuncs.c
@@ -263,7 +263,7 @@ pg_get_replication_slots(PG_FUNCTION_ARGS)
else
nulls[i++] = true;
- if (restart_lsn != InvalidTransactionId)
+ if (restart_lsn != InvalidXLogRecPtr)
values[i++] = LSNGetDatum(restart_lsn);
else
nulls[i++] = true;