We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 143fb25 + 83cd021 commit b303f6cCopy full SHA for b303f6c
src/pl_funcs.c
@@ -176,7 +176,6 @@ remove_on_xact_abort_callbacks(void *arg)
176
else
177
UnregisterSubXactCallback(on_subxact_abort_callback, arg);
178
179
- Assert(parg->expired == true); /* the job should always be done */
180
pfree(arg);
181
}
182
@@ -219,7 +218,8 @@ on_xact_abort_callback(XactEvent event, void *arg)
219
218
part_abort_arg *parg = (part_abort_arg *) arg;
220
221
/* Check that this is an aborted Xact & action has not expired yet */
222
- if (event == XACT_EVENT_ABORT && !parg->expired)
+ if ((event == XACT_EVENT_ABORT || event == XACT_EVENT_PARALLEL_ABORT) &&
+ !parg->expired)
223
{
224
handle_part_event_cancellation(parg);
225
0 commit comments