mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
need to force a write lock even in explicit locking mode
This commit is contained in:
parent
78ee6884f5
commit
62375e37a3
1 changed files with 2 additions and 0 deletions
|
@ -2342,6 +2342,8 @@ class DeckStorage(object):
|
|||
deck.needLock = lock
|
||||
deck.s = SessionHelper(s, lock=lock)
|
||||
deck.s.execute("pragma locking_mode = exclusive")
|
||||
# force a write lock
|
||||
deck.s.execute("update decks set modified = modified")
|
||||
if ver < 27:
|
||||
initTagTables(deck.s)
|
||||
if create:
|
||||
|
|
Loading…
Reference in a new issue