Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 392ddde

Browse files
committed
Allow precommit to be sent in workers pool when preserve_commit_order=false
1 parent 515af13 commit 392ddde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pglogical_receiver.c

+2-1
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)