diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-09-04 18:17:47 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-09-04 20:33:36 -0400 |
commit | 9a851039aac6fc7b78a80e60699e7bd8924b6f12 (patch) | |
tree | c6b43c19fb18c48cc84084d84016635fae057871 /src/backend/replication/slotfuncs.c | |
parent | 0852006a946aa9795b4913bccebb88d623942ca6 (diff) | |
download | postgresql-9a851039aac6fc7b78a80e60699e7bd8924b6f12.tar.gz postgresql-9a851039aac6fc7b78a80e60699e7bd8924b6f12.zip |
Remove still more useless assignments.
Fix some more things scan-build pointed to as dead stores. In some of
these cases, rearranging the code a little leads to more readable
code IMO. It's all cosmetic, though.
Discussion: https://postgr.es/m/CAEudQAo1+AcGppxDSg8k+zF4+Kv+eJyqzEDdbpDg58-=MQcerQ@mail.gmail.com
Diffstat (limited to 'src/backend/replication/slotfuncs.c')
-rw-r--r-- | src/backend/replication/slotfuncs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c index f88694672fb..1725ad0736f 100644 --- a/src/backend/replication/slotfuncs.c +++ b/src/backend/replication/slotfuncs.c @@ -518,9 +518,6 @@ pg_logical_replication_slot_advance(XLogRecPtr moveto) */ XLogBeginRead(ctx->reader, MyReplicationSlot->data.restart_lsn); - /* Initialize our return value in case we don't do anything */ - retlsn = MyReplicationSlot->data.confirmed_flush; - /* invalidate non-timetravel entries */ InvalidateSystemCaches(); |