- Notifications
You must be signed in to change notification settings - Fork28
Commite275d16
committed
Fix possible corruption of AfterTriggerEventLists in subtransaction rollback.
afterTriggerInvokeEvents failed to adjust events->tailfree when truncatingthe last chunk of an event list. This could result in the data being"de-truncated" by afterTriggerRestoreEventList during a subsequentsubtransaction abort. Even that wouldn't kill us, because the re-added datawould just be events marked DONE --- unless the data had been partiallyoverwritten by new events. Then we might crash, or in any case misbehave(perhaps fire triggers twice, or fire triggers with the wrong event data).Per bug #5622 from Thue Janus Kristensen.Back-patch to 8.4 where the current trigger list representation was introduced.1 parent3f11971 commite275d16
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
2955 | 2955 | | |
2956 | 2956 | | |
2957 | 2957 | | |
| 2958 | + | |
2958 | 2959 | | |
2959 | 2960 | | |
2960 | 2961 | | |
| |||
3356 | 3357 | | |
3357 | 3358 | | |
3358 | 3359 | | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
| 3367 | + | |
| 3368 | + | |
3359 | 3369 | | |
3360 | 3370 | | |
3361 | 3371 | | |
| |||
0 commit comments
Comments
(0)