Skip to content

Commit 83cd021

Browse files
committedJul 18, 2016
remove incorrect Assert, handle XACT_EVENT_PARALLEL_ABORT
1 parent a333938 commit 83cd021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/pl_funcs.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ remove_on_xact_abort_callbacks(void *arg)
180180
else
181181
UnregisterSubXactCallback(on_subxact_abort_callback, arg);
182182

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

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.