Skip to content

Commit a9a47fb

Browse files
author
Amit Kapila
committed
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
1 parent 7329240 commit a9a47fb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/backend/replication/slot.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,7 @@ ReplicationSlotAcquire(const char *name, bool nowait)
465465

466466
LWLockAcquire(ReplicationSlotControlLock, LW_SHARED);
467467

468-
/*
469-
* Search for the slot with the specified name if the slot to acquire is
470-
* not given. If the slot is not found, we either return -1 or error out.
471-
*/
468+
/* Check if the slot exits with the given name. */
472469
s = SearchNamedReplicationSlot(name, false);
473470
if (s == NULL || !s->in_use)
474471
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy