- Notifications
You must be signed in to change notification settings - Fork5
Commitbf64a37
committed
Fix Assert failure when a fastpath function call is attempted inside an
already-aborted transaction block. GetSnapshotData throws an Assert ifnot in a valid transaction; hence we mustn't attempt to set a snapshotfor the function until after checking for aborted transaction. This isharmless AFAICT if Asserts aren't enabled (GetSnapshotData will computea bogus snapshot, but it doesn't matter since HandleFunctionRequest willthrow an error shortly anywy). Hence, not a major bug.Along the way, add some ability to log fastpath calls when statementlogging is turned on. This could probably stand to be improved further,but not logging anything is clearly undesirable.Backpatched as far as 8.0; bug doesn't exist before that.1 parent807bfa5 commitbf64a37
2 files changed
+24
-6
lines changedLines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
299 | 300 |
| |
300 | 301 |
| |
301 | 302 |
| |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
302 | 309 |
| |
303 | 310 |
| |
304 | 311 |
| |
305 | 312 |
| |
306 |
| - | |
| 313 | + | |
307 | 314 |
| |
308 | 315 |
| |
309 | 316 |
| |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
310 | 322 |
| |
311 | 323 |
| |
312 | 324 |
| |
|
Lines changed: 10 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
3344 | 3344 |
| |
3345 | 3345 |
| |
3346 | 3346 |
| |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
| 3354 | + | |
| 3355 | + | |
3347 | 3356 |
| |
3348 | 3357 |
| |
3349 | 3358 |
| |
3350 |
| - | |
3351 |
| - | |
3352 |
| - | |
3353 | 3359 |
| |
3354 | 3360 |
| |
3355 | 3361 |
| |
|
0 commit comments
Comments
(0)