fixup! bdr: Add db oid param to fetch_sysid_via_node_id, add bdr_ prefix
authorCraig Ringer <[email protected]>
Thu, 15 May 2014 16:03:43 +0000 (00:03 +0800)
committerCraig 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

index 7c0cba3063099ce544e55ea63162c8d0959dcd55..ed2d70e16c19928dfe8f7f730c65b126087c4504 100644 (file)
@@ -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
    {