mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
must commit on concurrent update
This commit is contained in:
parent
653f001da0
commit
a93c3423e3
1 changed files with 3 additions and 1 deletions
|
@ -799,9 +799,11 @@ class MediaSyncer(object):
|
||||||
|
|
||||||
if serverLastUsn - processedCnt == lastUsn:
|
if serverLastUsn - processedCnt == lastUsn:
|
||||||
self.col.log("lastUsn in sync, updating local")
|
self.col.log("lastUsn in sync, updating local")
|
||||||
self.col.media.setLastUsn(serverLastUsn)
|
self.col.media.setLastUsn(serverLastUsn) # commits
|
||||||
else:
|
else:
|
||||||
self.col.log("concurrent update, skipping usn update")
|
self.col.log("concurrent update, skipping usn update")
|
||||||
|
# commit for markClean
|
||||||
|
self.col.media.db.commit()
|
||||||
updateConflict = True
|
updateConflict = True
|
||||||
|
|
||||||
if updateConflict:
|
if updateConflict:
|
||||||
|
|
Loading…
Reference in a new issue