Missing LWLock protection in pgstat_reset_replslot() - Mailing list pgsql-hackers

From Bertrand Drouvot
Subject Missing LWLock protection in pgstat_reset_replslot()
Date
Msg-id ZeGq1HDWFfLkjh4o@ip-10-97-1-34.eu-west-3.compute.internal
Whole thread Raw
Responses Re: Missing LWLock protection in pgstat_reset_replslot()
List pgsql-hackers
Hi hackers,

I think that pgstat_reset_replslot() is missing LWLock protection. Indeed, we
don't have any guarantee that the slot is active (then preventing it to be
dropped/recreated) when this function is executed.

Attached a patch to add the missing protection.

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Improve readability by using designated initializers when possible
Next
From: Bertrand Drouvot
Date:
Subject: Re: Regardign RecentFlushPtr in WalSndWaitForWal()