Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f03d14f

Browse files
committed
User 2PC and strict isolation level handling in test mode
1 parent 4542483 commit f03d14f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

multimaster.c

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

0 commit comments

Comments
 (0)