DBZ-3838 Do not reset trx isolation when using minimal_percona
This commit is contained in:
parent
c0fb820d97
commit
060420b0bc
@ -194,10 +194,12 @@ protected void lockTablesForSchemaSnapshot(ChangeEventSourceContext sourceContex
|
||||
// Continue anyway, since RDS (among others) don't allow setting a global lock
|
||||
assert !isGloballyLocked();
|
||||
}
|
||||
if (!connectorConfig.getSnapshotLockingMode().equals(MySqlConnectorConfig.SnapshotLockingMode.MINIMAL_PERCONA)) {
|
||||
// FLUSH TABLES resets TX and isolation level
|
||||
connection.executeWithoutCommitting("SET TRANSACTION ISOLATION LEVEL REPEATABLE READ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void releaseSchemaSnapshotLocks(RelationalSnapshotContext<MySqlPartition, MySqlOffsetContext> snapshotContext)
|
||||
|
Loading…
Reference in New Issue
Block a user