bdr: Fix unitialized variable.
authorPetr Jelinek <pjmodos@pjmodos.net>
Wed, 4 Feb 2015 19:57:22 +0000 (20:57 +0100)
committerCraig Ringer <craig@2ndquadrant.com>
Sun, 8 Feb 2015 02:41:52 +0000 (15:41 +1300)
bdr_replication_identifier.c

index 4ee9c317a060aae673de2eafdff57763cf2ad634..bb929aa0226653b36ad432b6746504e5e7b1bac4 100644 (file)
@@ -397,7 +397,6 @@ void
 SetupCachedReplicationIdentifier(RepNodeId node)
 {
    Relation        rel;
-   Snapshot        snap;
    SysScanDesc     scan;
    ScanKeyData     key;
    HeapTuple       tuple;
@@ -423,7 +422,7 @@ SetupCachedReplicationIdentifier(RepNodeId node)
                ObjectIdGetDatum(node));
 
    scan = systable_beginscan(rel, ReplicationPosLocalIdentIndex,
-                             true, snap, 1, &key);
+                             true, NULL, 1, &key);
    tuple = systable_getnext(scan);
 
    if (HeapTupleIsValid(tuple))