Commit 7536bef
committed
sql: clarify cleanup queue for pausable portals
We have several cleanup "stacks" for pausable portals model, but in
reality we execute the functions in the "forward" direction, matching
the behavior of a "queue", so this commit renames the struct
accordingly. Only `execStmtInOpenState` and `dispatchToExecutionEngine`
stages have multiple cleanup functions.
Additionally, it fixes the inverted order of executing two cleanup
functions in `dispatchToExecutionEngine` stage. Namely, previously we
performed `planTop.Close` _before_ `recordStatementSummary` which
doesn't match the behavior on the main path, outside the pausable
portals. We now defer appending the former so that it's executed after
the latter.
Deferring `planTop.Close` was necessary for the following commit which
is what prompted this one.
Release note: None1 parent a75f7a7 commit 7536bef
2 files changed
+33
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
1697 | 1700 | | |
1698 | 1701 | | |
1699 | 1702 | | |
| |||
2772 | 2775 | | |
2773 | 2776 | | |
2774 | 2777 | | |
2775 | | - | |
2776 | | - | |
2777 | | - | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
2778 | 2783 | | |
2779 | 2784 | | |
2780 | 2785 | | |
| |||
2921 | 2926 | | |
2922 | 2927 | | |
2923 | 2928 | | |
| 2929 | + | |
| 2930 | + | |
2924 | 2931 | | |
2925 | 2932 | | |
2926 | 2933 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
183 | 188 | | |
184 | 189 | | |
185 | 190 | | |
186 | | - | |
187 | | - | |
| 191 | + | |
| 192 | + | |
188 | 193 | | |
189 | 194 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
193 | 198 | | |
194 | | - | |
| 199 | + | |
195 | 200 | | |
196 | 201 | | |
197 | 202 | | |
| |||
226 | 231 | | |
227 | 232 | | |
228 | 233 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
233 | 238 | | |
234 | 239 | | |
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
238 | | - | |
239 | | - | |
240 | 243 | | |
| 244 | + | |
| 245 | + | |
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
244 | 249 | | |
245 | | - | |
| 250 | + | |
246 | 251 | | |
247 | 252 | | |
248 | 253 | | |
| |||
266 | 271 | | |
267 | 272 | | |
268 | 273 | | |
269 | | - | |
| 274 | + | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
| |||
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
298 | | - | |
| 303 | + | |
299 | 304 | | |
300 | 305 | | |
301 | 306 | | |
| |||
307 | 312 | | |
308 | 313 | | |
309 | 314 | | |
310 | | - | |
| 315 | + | |
311 | 316 | | |
312 | 317 | | |
313 | 318 | | |
| |||
0 commit comments