BFT server: add missing databaseTransaction statement

This commit is contained in:
Andrius Dagys 2017-02-20 14:40:29 +00:00
parent 9a0a9567f3
commit 24ae89db18

View File

@ -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 -> {