Skip to content

Commit 8fa9faa

Browse files
committed
Allow precommit to be sent in workers pool when preserve_commit_order=false
1 parent 905c304 commit 8fa9faa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/mmts/pglogical_receiver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,8 @@ pglogical_receiver_main(Datum main_arg)
576576
elog(WARNING, "Commit of prepared transaction takes %lld usec, flags=%x", stop - start, stmt[1]);
577577
}
578578
} else {
579-
Assert(stmt[1] == PGLOGICAL_PREPARE || stmt[1] == PGLOGICAL_COMMIT); /* all other commits should be applied in place */
579+
/* all other commits should be applied in place */
580+
Assert(stmt[1] == PGLOGICAL_PREPARE || stmt[1] == PGLOGICAL_COMMIT || stmt[1] == PGLOGICAL_PRECOMMIT_PREPARED);
580581
MtmExecute(buf.data, buf.used);
581582
}
582583
}

0 commit comments

Comments
 (0)