mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
take out an exclusive lock on the deck
This commit is contained in:
parent
52cfef6e6c
commit
440321459a
1 changed files with 1 additions and 0 deletions
|
@ -2279,6 +2279,7 @@ class DeckStorage(object):
|
|||
deck.Session = session
|
||||
deck.needLock = lock
|
||||
deck.s = SessionHelper(s, lock=lock)
|
||||
deck.s.execute("pragma locking_mode = exclusive")
|
||||
if ver < 27:
|
||||
initTagTables(deck.s)
|
||||
if create:
|
||||
|
|
Loading…
Reference in a new issue