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

Commitff68cc6

Browse files
author
Amit Kapila
committed
Stop the search once the slot for replication origin is found.
In replorigin_session_setup(), we were needlessly looping formax_replication_slots even after finding an existing slot for the origin.This shouldn't hurt us much except for probably large values ofmax_replication_slots.Author: Antonin HouskaDiscussion:http://postgr.es/m/2694.1700471273@antos
1 parentcf359a0 commitff68cc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/backend/replication/logical/origin.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,7 @@ replorigin_session_setup(RepOriginId node, int acquired_by)
11441144

11451145
/* ok, found slot */
11461146
session_replication_state=curstate;
1147+
break;
11471148
}
11481149

11491150

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp