Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83cd021

Browse files
committed
remove incorrect Assert, handle XACT_EVENT_PARALLEL_ABORT
1 parenta333938 commit83cd021

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)

[8]ページ先頭

©2009-2025 Movatter.jp