Skip to content

Commit

Permalink
remove incorrect Assert, handle XACT_EVENT_PARALLEL_ABORT
Browse files Browse the repository at this point in the history
  • Loading branch information
funbringer committed Jul 18, 2016
1 parent a333938 commit 83cd021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pl_funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ remove_on_xact_abort_callbacks(void *arg)
else
UnregisterSubXactCallback(on_subxact_abort_callback, arg);

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

Expand Down Expand Up @@ -223,7 +222,8 @@ on_xact_abort_callback(XactEvent event, void *arg)
part_abort_arg *parg = (part_abort_arg *) arg;

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

Expand Down

0 comments on commit 83cd021

Please sign in to comment.