ndb: switch profile queries to use transactions
this should ensure no crashing occurs when querying profiles
This commit is contained in:
@@ -17,7 +17,7 @@ class NdbTxn<T> {
|
||||
private var val: T!
|
||||
var moved: Bool
|
||||
|
||||
init(ndb: Ndb, with: (NdbTxn<T>) -> T) {
|
||||
init(ndb: Ndb, with: (NdbTxn<T>) -> T = { _ in () }) {
|
||||
self.txn = ndb_txn()
|
||||
#if TXNDEBUG
|
||||
txn_count += 1
|
||||
|
||||
Reference in New Issue
Block a user