pgsql: Fix logic bug in 1632ea43682f

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Fix logic bug in 1632ea43682f
Дата
Msg-id E1lstGH-0003NL-UZ@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/33c509956704e1d918077b51ccd954f2e201a8f5

Modified Files
--------------
src/backend/replication/slot.c | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: doc: PG 14 relnotes fixes
Следующее
От: Noah Misch
Дата:
Сообщение: pgsql: Copy-edit text for the pg_terminate_backend() "timeout" paramete