projects
/
users
/
andresfreund
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3712222
)
fixup! bdr: Add db oid param to fetch_sysid_via_node_id, add bdr_ prefix
author
Craig Ringer
<
[email protected]
>
Thu, 15 May 2014 16:03:43 +0000
(
00:03
+0800)
committer
Craig Ringer
<
[email protected]
>
Thu, 15 May 2014 16:14:39 +0000
(
00:14
+0800)
The original commit didn't handle the case for the local node.
contrib/bdr/bdr_catalogs.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/bdr/bdr_catalogs.c
b/contrib/bdr/bdr_catalogs.c
index 7c0cba3063099ce544e55ea63162c8d0959dcd55..ed2d70e16c19928dfe8f7f730c65b126087c4504 100644
(file)
--- a/
contrib/bdr/bdr_catalogs.c
+++ b/
contrib/bdr/bdr_catalogs.c
@@
-172,8
+172,10
@@
bdr_fetch_sysid_via_node_id(RepNodeId node_id, uint64 *sysid, TimeLineID *tli,
{
if (node_id == InvalidRepNodeId)
{
+ /* It's the local node */
*sysid = GetSystemIdentifier();
*tli = ThisTimeLineID;
+ *dboid = MyDatabaseID;
}
else
{