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