Remove duplicate code from ReorderBufferCleanupTXN().

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

Commit: b6182081be4a795d70b966be2542ad32d1ffbc20
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-09-05T00:49:44Z
Releases: 10.0
Remove duplicate code from ReorderBufferCleanupTXN().

Andres is apparently the only hacker who thinks this code is better as-is.
I (tgl) follow some of his logic, but the fact that it's setting off
warnings from static code analyzers seems like a sufficient reason to
put the complexity into a comment rather than the code.

Aleksander Alekseev

Discussion: <20160404190345.54d84ee8@fujitsu>

Files

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