Further cleanup of ReorderBufferCommit().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f86a8955e8aae4da854e65b87b588e37ecb45918
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-01-26T03:49:59Z
Releases: 9.4.1
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".

Files

PathChange+/−
src/backend/replication/logical/reorderbuffer.c modified +17 −17