Repository navigation
Commit 670cc02
Use outer memory context across slot sync retries
Capture the outer memory context once before the retry loop in
SyncReplicationSlots() to better better matches the actual lifetime model:
sync_retry_ctx is the per-cycle child context, while slot_names must live
in the parent/outer context across resets. Rename the oldctx to outerctx
to express the parent/child relationship more clearly.1 parent 91f7521 commit 670cc02
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2085 | 2085 | | |
2086 | 2086 | | |
2087 | 2087 | | |
| 2088 | + | |
2088 | 2089 | | |
2089 | 2090 | | |
2090 | 2091 | | |
2091 | 2092 | | |
2092 | 2093 | | |
| 2094 | + | |
| 2095 | + | |
2093 | 2096 | | |
2094 | 2097 | | |
2095 | 2098 | | |
2096 | 2099 | | |
2097 | 2100 | | |
2098 | | - | |
| 2101 | + | |
2099 | 2102 | | |
2100 | 2103 | | |
2101 | 2104 | | |
| |||
2104 | 2107 | | |
2105 | 2108 | | |
2106 | 2109 | | |
2107 | | - | |
2108 | 2110 | | |
2109 | 2111 | | |
2110 | 2112 | | |
| |||
2116 | 2118 | | |
2117 | 2119 | | |
2118 | 2120 | | |
2119 | | - | |
| 2121 | + | |
2120 | 2122 | | |
2121 | 2123 | | |
2122 | 2124 | | |
| |||
2138 | 2140 | | |
2139 | 2141 | | |
2140 | 2142 | | |
2141 | | - | |
| 2143 | + | |
2142 | 2144 | | |
2143 | 2145 | | |
2144 | 2146 | | |
| |||
0 commit comments