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

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)
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