From 8667fc36dab8276f61aaa4996d938eda0269b9ec Mon Sep 17 00:00:00 2001
From: Wang Wei <wangw.fnst@fujitsu.com>
Date: Thu, 25 Jan 2024 17:04:41 +0900
Subject: [PATCH v3] Fix inappropriate comments in function
 ReplicationSlotAcquire

The comment have become slightly outdated after the commit 1632ea4.
Improve it.
---
 src/backend/replication/slot.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index 02a14ec210..5e3ec0b666 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)
 	{
-- 
2.39.1.windows.1

