Commit 80602f2
committed
Fix replay queue spill-to-disk CodeRabbit review findings
- Fix memory leak: spill-read entries during replay were allocated in
TopMemoryContext but never freed because entry_spilled was only set on
the first-pass path. Add !entry->from_pq to the free condition so
replay-path spill-read entries are freed after processing.
- Set GUC minimum for spock.exception_replay_queue_size from -1 to 0,
removing an undocumented value that silently behaved the same as 0.
- Use explicit subscription name in spill_transaction test when polling
sub_show_status to avoid ambiguity with multiple subscriptions.1 parent 4c7b75f commit 80602f2
4 files changed
Lines changed: 17 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1159 | 1159 | | |
1160 | 1160 | | |
1161 | 1161 | | |
1162 | | - | |
| 1162 | + | |
1163 | 1163 | | |
1164 | 1164 | | |
1165 | 1165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3053 | 3053 | | |
3054 | 3054 | | |
3055 | 3055 | | |
3056 | | - | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
3057 | 3059 | | |
3058 | | - | |
| 3060 | + | |
3059 | 3061 | | |
3060 | 3062 | | |
3061 | 3063 | | |
| |||
3991 | 3993 | | |
3992 | 3994 | | |
3993 | 3995 | | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
| 3999 | + | |
| 4000 | + | |
| 4001 | + | |
| 4002 | + | |
| 4003 | + | |
3994 | 4004 | | |
3995 | 4005 | | |
3996 | | - | |
3997 | 4006 | | |
3998 | 4007 | | |
3999 | 4008 | | |
| |||
4195 | 4204 | | |
4196 | 4205 | | |
4197 | 4206 | | |
4198 | | - | |
4199 | | - | |
4200 | | - | |
4201 | | - | |
4202 | | - | |
4203 | 4207 | | |
4204 | 4208 | | |
4205 | 4209 | | |
| |||
4209 | 4213 | | |
4210 | 4214 | | |
4211 | 4215 | | |
4212 | | - | |
4213 | | - | |
4214 | | - | |
| 4216 | + | |
| 4217 | + | |
4215 | 4218 | | |
4216 | 4219 | | |
4217 | 4220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
0 commit comments