pgsql: Fix excessive logging in idle slotsync worker.

Поиск
Список
Период
Сортировка
Искать

pgsql: Fix excessive logging in idle slotsync worker.

От:
Amit Kapila <akapila@postgresql.org>
Дата:
Fix excessive logging in idle slotsync worker.

The slotsync worker was incorrectly identifying no-op states as successful
updates, triggering a busy loop to sync slots that logged messages every
200ms. This patch corrects the logic to properly classify these states,
enabling the worker to respect normal sleep intervals when no work is
performed.

Reported-by: Fujii Masao 
Author: Zhijie Hou 
Reviewed-by: Amit Kapila 
Reviewed-by: shveta malik 
Backpatch-through: 17, where it was introduced
Discussion: https://postgr.es/m/CAHGQGwF6zG9Z8ws1yb3hY1VqV-WT7hR0qyXCn2HdbjvZQKufDw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/85c17f612af7b9c47a9828805686f0dd2433cdf1

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

FAQ