commit 7c9d25dad812ac12b394672815961b9e012a9a49
parent 6a687e8c40a96932a9a58e7810da3a9bc095b2c8
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 18 Jul 2015 04:58:10 -0400
Fix excessive file sync mtime updates/checks?
Same as 1c2b2575f, but this time in code we actually still run
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js
@@ -1000,13 +1000,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);
return;
}
- 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;
}