Skip to content

Commit b8cce29

Browse files
committed
Support more than one truncate in transaction
1 parent 5e8f5bb commit b8cce29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/mmts/multimaster.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,9 @@ static void
21432143
MtmLockCluster(void)
21442144
{
21452145
timestamp_t delay = MIN_WAIT_TIMEOUT;
2146-
Assert(!MtmClusterLocked);
2146+
if (MtmClusterLocked) {
2147+
MtmUnlockCluster();
2148+
}
21472149
MtmLock(LW_EXCLUSIVE);
21482150
if (BIT_CHECK(Mtm->originLockNodeMask, MtmNodeId-1)) {
21492151
elog(ERROR, "There is already pending exclusive lock");

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