Content-Length: 258061 | pFad | http://github.com/postgrespro/postgres_cluster/commit/241d31dd998fb888df93855f33234b89a20c415d

2E Support more than one truncate in transaction · postgrespro/postgres_cluster@241d31d · GitHub
Skip to content

Commit 241d31d

Browse files
knizhnikkelvich
authored andcommitted
Support more than one truncate in transaction
1 parent dc89773 commit 241d31d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

multimaster.c

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

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/241d31dd998fb888df93855f33234b89a20c415d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy