Fix excessive file sync mtime updates/checks (probably?)

This commit is contained in:
Dan Stillman 2015-04-09 03:47:43 -04:00
parent f5ce2d238e
commit 1c2b2575f7

View file

@ -864,13 +864,14 @@ Zotero.Sync.Storage = new function () {
Zotero.debug("Remote mod time for item " + lk + " is " + itemModTimes[item.id]);
// Ignore attachments whose stored mod times haven't changed
if (row.storageModTime == itemModTimes[id]) {
if (row.storageModTime == itemModTimes[item.id]) {
Zotero.debug("Storage mod time (" + row.storageModTime + ") "
+ "hasn't changed for item " + lk);
continue;
}
Zotero.debug("Marking attachment " + lk + " for download");
Zotero.debug("Marking attachment " + lk + " for download "
+ "(stored mtime: " + itemModTimes[item.id] + ")");
updatedStates[item.id] = Zotero.Sync.Storage.SYNC_STATE_FORCE_DOWNLOAD;
}