diff options
author | Amit Kapila <akapila@postgresql.org> | 2024-01-29 10:12:58 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2024-01-29 10:12:58 +0530 |
commit | a9a47fb6d99785d5d272b408d251dca28b0879e3 (patch) | |
tree | 633fe07afcee1cb4f894ea150365337ab440867b /src | |
parent | 73292404370c9900a96e2bebdc7144f7010339cf (diff) | |
download | postgresql-a9a47fb6d99785d5d272b408d251dca28b0879e3.tar.gz postgresql-a9a47fb6d99785d5d272b408d251dca28b0879e3.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/replication/slot.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c index f2781d0455a..110cb59783f 100644 --- a/src/backend/replication/slot.c +++ b/src/backend/replication/slot.c @@ -465,10 +465,7 @@ retry: LWLockAcquire(ReplicationSlotControlLock, LW_SHARED); - /* - * 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. - */ + /* Check if the slot exits with the given name. */ s = SearchNamedReplicationSlot(name, false); if (s == NULL || !s->in_use) { |