Skip to content

Commit 035f868

Browse files
committed
User 2PC and strict isolation level handling in test mode
1 parent b23f59e commit 035f868

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/mmts/multimaster.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3798,7 +3798,7 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
37983798
}
37993799
break;
38003800
case TRANS_STMT_PREPARE:
3801-
//elog(ERROR, "Two phase commit is not supported by multimaster");
3801+
elog(ERROR, "Two phase commit is not supported by multimaster");
38023802
break;
38033803
case TRANS_STMT_COMMIT_PREPARED:
38043804
case TRANS_STMT_ROLLBACK_PREPARED:
@@ -3958,11 +3958,11 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
39583958
standard_ProcessUtility(parsetree, queryString, context,
39593959
params, dest, completionTag);
39603960
}
3961-
3962-
if (MtmTx.isDistributed && XactIsoLevel != XACT_REPEATABLE_READ) {
3961+
3962+
if (MtmTx.isDistributed && XactIsoLevel != XACT_REPEATABLE_READ && !MtmVolksWagenMode) {
39633963
elog(ERROR, "Isolation level %s is not supported by multimaster", isoLevelStr[XactIsoLevel]);
39643964
}
3965-
3965+
39663966
if (MyXactAccessedTempRel)
39673967
{
39683968
MTM_LOG1("Xact accessed temp table, stopping replication");

0 commit comments

Comments
 (0)