bdr: bugfix: end critical section in „not acquired new“ case as well
authorChristian Kruse <[email protected]>
Mon, 31 Mar 2014 12:08:37 +0000 (14:08 +0200)
committerAndres Freund <[email protected]>
Thu, 3 Jul 2014 15:55:22 +0000 (17:55 +0200)
contrib/bdr/bdr_seq.c

index b4a853196beb0b4609617682c438428086655196..63be861c970d9644b98795da29bbdc5191d91930 100644 (file)
@@ -924,9 +924,9 @@ bdr_sequencer_fill_sequence(Oid seqoid, char *seqschema, char *seqname)
 
    log_sequence_tuple(rel, &seqtuple, page);
 
+done_with_sequence:
    END_CRIT_SECTION();
 
-done_with_sequence:
    UnlockReleaseBuffer(buf);
    heap_close(rel, NoLock);
 }