commit 1c2b2575f744226639652767cc39acddcd3a7afd
parent f5ce2d238eb20dcf39f1d3ef8712a45a343c65d0
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 9 Apr 2015 03:47:43 -0400
Fix excessive file sync mtime updates/checks (probably?)
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js
@@ -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;
}