• Tom Lane's avatar
    Fix unsafe coding in ReorderBufferCommit(). · f8a4dd2e
    Tom Lane authored
    "iterstate" must be marked volatile since it's changed inside the PG_TRY
    block and then used in the PG_CATCH stanza.  Noted by Mark Wilding of
    Salesforce.  (We really need to see if we can't get the C compiler to warn
    about this.)
    
    Also, reset iterstate to NULL after the mainline ReorderBufferIterTXNFinish
    call, to ensure the PG_CATCH block doesn't try to do that a second time.
    f8a4dd2e
reorderbuffer.c 80.5 KB