Skip to content

Commit b303f6c

Browse files
committed
Merge branch 'master' into picky_nodes
2 parents 143fb25 + 83cd021 commit b303f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pl_funcs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ remove_on_xact_abort_callbacks(void *arg)
176176
else
177177
UnregisterSubXactCallback(on_subxact_abort_callback, arg);
178178

179-
Assert(parg->expired == true); /* the job should always be done */
180179
pfree(arg);
181180
}
182181

@@ -219,7 +218,8 @@ on_xact_abort_callback(XactEvent event, void *arg)
219218
part_abort_arg *parg = (part_abort_arg *) arg;
220219

221220
/* Check that this is an aborted Xact & action has not expired yet */
222-
if (event == XACT_EVENT_ABORT && !parg->expired)
221+
if ((event == XACT_EVENT_ABORT || event == XACT_EVENT_PARALLEL_ABORT) &&
222+
!parg->expired)
223223
{
224224
handle_part_event_cancellation(parg);
225225

0 commit comments

Comments
 (0)