mirror of
https://github.com/corda/corda.git
synced 2025-01-31 16:35:43 +00:00
BFT server: add missing databaseTransaction statement
This commit is contained in:
parent
9a0a9567f3
commit
24ae89db18
@ -57,7 +57,7 @@ class BFTSmartServer<K: Any, V: Any>(val id: Int, val db: Database, tableName: S
|
||||
val request = command.deserialize<Request>()
|
||||
when (request.type) {
|
||||
RequestType.Get -> {
|
||||
val v = table[request.data] ?: return null
|
||||
val v = databaseTransaction(db) { table[request.data] } ?: return null
|
||||
return v.serialize().bytes
|
||||
}
|
||||
else -> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user