projects
/
2ndquadrant_bdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0ecee8
)
Check for do not replicate replication set in the bdr_fetch_sysid_via_node_id().
author
Petr Jelinek
<petr@2ndquadrant.com>
Thu, 1 Oct 2015 14:20:15 +0000
(16:20 +0200)
committer
Petr Jelinek
<pjmodos@pjmodos.net>
Thu, 1 Oct 2015 14:21:28 +0000
(16:21 +0200)
This can cause crash otherwise since conflict code can be called with tuple which was written with the do not replicate set..
bdr_catalogs.c
patch
|
blob
|
blame
|
history
diff --git
a/bdr_catalogs.c
b/bdr_catalogs.c
index 7ac4475b3d11a3c7c2200e16970214227cfcba95..94b04652e715e983ed7daddd5368be455dbd2f8e 100644
(file)
--- a/
bdr_catalogs.c
+++ b/
bdr_catalogs.c
@@
-286,7
+286,7
@@
void
bdr_fetch_sysid_via_node_id(RepNodeId node_id, uint64 *sysid, TimeLineID *tli,
Oid *dboid)
{
- if (node_id == InvalidRepNodeId)
+ if (node_id == InvalidRepNodeId
|| node_id == DoNotReplicateRepNodeId
)
{
/* It's the local node */
*sysid = GetSystemIdentifier();