Fix logic bug in 1632ea43682f
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 14 Jun 2021 20:31:12 +0000 (16:31 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 14 Jun 2021 20:31:12 +0000 (16:31 -0400)
commit33c509956704e1d918077b51ccd954f2e201a8f5
tree0a13c52b50744ab5369e28c965fb20be9e6e68de
parent86b222b09071d3918c5c55b164d22b2236d3f872
Fix logic bug in 1632ea43682f

I overlooked that one condition was logically inverted.  The fix is a
little bit more involved than simply negating the condition, to make
the code easier to read.

Fix some outdated comments left by the same commit, while at it.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/YMRlmB3/lZw8YBH+@paquier.xyz
src/backend/replication/slot.c