mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Fix comments in ReplicationSlotAcquire().
They were incorrectly referring to a slot parameter in ReplicationSlotAcquire() which is not passed to the API. Author: Wang Wei Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/OS3PR01MB6275E3CE4DC15FF8B8B80D3A9E7A2@OS3PR01MB6275.jpnprd01.prod.outlook.com
This commit is contained in:
parent
7329240437
commit
a9a47fb6d9
@ -465,10 +465,7 @@ retry:
|
|||||||
|
|
||||||
LWLockAcquire(ReplicationSlotControlLock, LW_SHARED);
|
LWLockAcquire(ReplicationSlotControlLock, LW_SHARED);
|
||||||
|
|
||||||
/*
|
/* Check if the slot exits with the given name. */
|
||||||
* Search for the slot with the specified name if the slot to acquire is
|
|
||||||
* not given. If the slot is not found, we either return -1 or error out.
|
|
||||||
*/
|
|
||||||
s = SearchNamedReplicationSlot(name, false);
|
s = SearchNamedReplicationSlot(name, false);
|
||||||
if (s == NULL || !s->in_use)
|
if (s == NULL || !s->in_use)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user