Skip to content

Commit 83cd021

Browse files
committed
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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy