Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita9a47fb

Browse files
author
Amit Kapila
committed
Fix comments in ReplicationSlotAcquire().
They were incorrectly referring to a slot parameter inReplicationSlotAcquire() which is not passed to the API.Author: Wang WeiReviewed-by: Amit KapilaDiscussion:https://postgr.es/m/OS3PR01MB6275E3CE4DC15FF8B8B80D3A9E7A2@OS3PR01MB6275.jpnprd01.prod.outlook.com
1 parent7329240 commita9a47fb

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)

[8]ページ先頭

©2009-2025 Movatter.jp