mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
ENT-8983 - Postgres migration failure (#7408)
* Set DB transaction isolation level only if its going to change; upgraded dependencies * Removed duplicate changeset
This commit is contained in:
@ -29,7 +29,10 @@ class DatabaseTransaction(
|
||||
val connection: Connection by lazy(LazyThreadSafetyMode.NONE) {
|
||||
database.dataSource.connection.apply {
|
||||
autoCommit = false
|
||||
transactionIsolation = isolation
|
||||
// only set the transaction isolation level if it's actually changed - setting isn't free.
|
||||
if (transactionIsolation != isolation) {
|
||||
transactionIsolation = isolation
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user