Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86baf3c
)
Fix copy & paste mistake in pg_get_replication_slots().
author
Andres Freund
<andres@anarazel.de>
Mon, 10 Aug 2015 11:28:19 +0000
(13:28 +0200)
committer
Andres Freund
<andres@anarazel.de>
Mon, 10 Aug 2015 11:28:19 +0000
(13:28 +0200)
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
src/backend/replication/slotfuncs.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/replication/slotfuncs.c
b/src/backend/replication/slotfuncs.c
index 9a2793f7ec3e9e0febfe3b60b9d688d9ae4b21ad..348c7fe9fce08023f97f41fe81f783d31f82efb7 100644
(file)
--- 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 != Invalid
TransactionId
)
+ if (restart_lsn != Invalid
XLogRecPtr
)
values[i++] = LSNGetDatum(restart_lsn);
else
nulls[i++] = true;