diff options
author | Andres Freund <andres@anarazel.de> | 2015-08-10 13:28:19 +0200 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2015-08-10 13:28:19 +0200 |
commit | 2949987d37cf8d13ca0582610c17a4ddbc246193 (patch) | |
tree | b1b35785f0a1af86cb22f97302a10fee15ecfe15 | |
parent | 86baf3c24dfb6f351d0a1653552d0973ad7c4e3d (diff) | |
download | postgresql-2949987d37cf8d13ca0582610c17a4ddbc246193.tar.gz postgresql-2949987d37cf8d13ca0582610c17a4ddbc246193.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
-rw-r--r-- | src/backend/replication/slotfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c index 9a2793f7ec3..348c7fe9fce 100644 --- a/src/backend/replication/slotfuncs.c +++ b/src/backend/replication/slotfuncs.c @@ -268,7 +268,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; |