pgsql: Reset progress counters at end of WaitForOlderSnapshots()

Started by Michael Paquierabout 1 hour ago1 messagescommitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

Reset progress counters at end of WaitForOlderSnapshots()

WaitForOlderSnapshots() reports lockers_total, lockers_done and
current_locker_pid while it waits, leaving them set when the wait is
done. A follow-up wait could inherit stale values, leading to some
temporary glitches in the progress view.

Like WaitForLockersMultiple(), the counters are now reset when leaving
WaitForOlderSnapshots().

Oversight in ab0dfc961b6. No backpatch is done, as this is cosmetic.

Author: Manu <manuelreyesbravo@gmail.com>
Discussion: /messages/by-id/179489308882.313551.16760472116841542703@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3e26b3cb25149e5d9ab4322a750317475211cd21

Modified Files
--------------
src/backend/commands/indexcmds.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)