We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc89773 commit 241d31dCopy full SHA for 241d31d
multimaster.c
@@ -2144,7 +2144,9 @@ static void
2144
MtmLockCluster(void)
2145
{
2146
timestamp_t delay = MIN_WAIT_TIMEOUT;
2147
- Assert(!MtmClusterLocked);
+ if (MtmClusterLocked) {
2148
+ MtmUnlockCluster();
2149
+ }
2150
MtmLock(LW_EXCLUSIVE);
2151
if (BIT_CHECK(Mtm->originLockNodeMask, MtmNodeId-1)) {
2152
elog(ERROR, "There is already pending exclusive lock");
0 commit comments