diff options
| author | Tom Lane | 2015-01-24 18:25:22 +0000 |
|---|---|---|
| committer | Tom Lane | 2015-01-24 18:25:22 +0000 |
| commit | 91964c3ed1c49d9a8670d3f85a660181cc541c7c (patch) | |
| tree | 56ed1eac4dc206d5adc41a45648ad51da471f5cc /src/backend/utils | |
| parent | d51d4ff311d01de8521acedb0a6f7c242648a231 (diff) | |
Fix unsafe coding in ReorderBufferCommit().
"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.
Diffstat (limited to 'src/backend/utils')
0 files changed, 0 insertions, 0 deletions
