mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Set sqlite busy handler before performing key-related requests
This commit is contained in:
parent
e82e856e74
commit
c81162f229
@ -298,6 +298,8 @@ public final class SqliteValueBox: ValueBox {
|
||||
preconditionFailure("Couldn't open database")
|
||||
}
|
||||
|
||||
sqlite3_busy_timeout(database.handle, 1000 * 10000)
|
||||
|
||||
var resultCode: Bool = true
|
||||
|
||||
resultCode = database.execute("PRAGMA cipher_plaintext_header_size=32")
|
||||
@ -408,8 +410,6 @@ public final class SqliteValueBox: ValueBox {
|
||||
}
|
||||
}
|
||||
|
||||
sqlite3_busy_timeout(database.handle, 1000 * 10000)
|
||||
|
||||
//database.execute("PRAGMA cache_size=-2097152")
|
||||
resultCode = database.execute("PRAGMA mmap_size=0")
|
||||
assert(resultCode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user