mirror of
https://github.com/corda/corda.git
synced 2025-06-20 08:03:53 +00:00
Fix compile errors.
This commit is contained in:
@ -44,7 +44,9 @@ enum class TransactionIsolationLevel {
|
||||
}
|
||||
|
||||
private val _contextDatabase = ThreadLocal<CordaPersistence>()
|
||||
val contextDatabase get() = _contextDatabase.get() ?: error("Was expecting to find CordaPersistence set on current thread: ${Strand.currentStrand()}")
|
||||
var contextDatabase: CordaPersistence
|
||||
get() = _contextDatabase.get() ?: error("Was expecting to find CordaPersistence set on current thread: ${Strand.currentStrand()}")
|
||||
set(database) = _contextDatabase.set(database)
|
||||
|
||||
class CordaPersistence(
|
||||
val dataSource: DataSource,
|
||||
|
@ -15,7 +15,7 @@ val contextTransaction get() = contextTransactionOrNull ?: error("Was expecting
|
||||
|
||||
class DatabaseTransaction(
|
||||
isolation: Int,
|
||||
private val outerTransaction: DatabaseTransaction?,
|
||||
val outerTransaction: DatabaseTransaction?,
|
||||
val database: CordaPersistence
|
||||
) {
|
||||
val id: UUID = UUID.randomUUID()
|
||||
|
Reference in New Issue
Block a user