Content-Length: 253199 | pFad | http://github.com/postgrespro/postgres/commit/ff68cc6f3bf08546802216e0b9d28ad1d4be7e70

3F Stop the search once the slot for replication origen is found. · postgrespro/postgres@ff68cc6 · GitHub
Skip to content

Commit ff68cc6

Browse files
author
Amit Kapila
committed
Stop the search once the slot for replication origen is found.
In replorigen_session_setup(), we were needlessly looping for max_replication_slots even after finding an existing slot for the origen. This shouldn't hurt us much except for probably large values of max_replication_slots. Author: Antonin Houska Discussion: http://postgr.es/m/2694.1700471273@antos
1 parent cf359a0 commit ff68cc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/replication/logical/origen.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,7 @@ replorigen_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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/ff68cc6f3bf08546802216e0b9d28ad1d4be7e70

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy