Further cleanup of ReorderBufferCommit().
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 26 Jan 2015 03:49:56 +0000 (22:49 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 26 Jan 2015 03:49:56 +0000 (22:49 -0500)
commitc70f9e8988c52ee4a81b978208dda96d399977b6
tree4e402e57afc1a2933714ef4d7d434c8f79c70eb9
parentbf007a27acd7b2fbaa4c8db293f156907cb01d27
Further cleanup of ReorderBufferCommit().

On closer inspection, we can remove the "volatile" qualifier on
"using_subtxn" so long as we initialize that before the PG_TRY block,
which there's no particularly good reason not to do.
Also, push the "change" variable inside the PG_TRY so as to remove
all question of whether it needs "volatile", and remove useless
early initializations of "snapshow_now" and "using_subtxn".
src/backend/replication/logical/reorderbuffer.c