avoid false dropped replication slot log messages
Started by Lakshmi N7 months ago1 messageshackers
Thread notes
1 note#bug
hackorum-bot#bug
hackorum-bot
2 days ago@global #bug
#bug
Stepping through
Hi hackers,
If the shared-memory entry for a synced slot is concurrently reused by
a user-created slot in the small window between rm collecting the candidate
list and locking the database, drop_local_obsolete_slots() correctly
skips the drop but still emitted a LOG message claiming the slot had
been dropped, naming the unrelated user slot.
Gate the LOG message on the same synced_slot check that gates the drop,
and snapshot the slot name and database OID before calling
ReplicationSlotDropAcquired() so the message reflects what was actually
dropped
Regards,
Lakshmi