Fix excessive file sync mtime updates/checks, but for real this time
This commit is contained in:
parent
1fadf1150e
commit
33334d9c01
|
@ -863,6 +863,7 @@ Zotero.Sync.Storage = new function () {
|
|||
return;
|
||||
}
|
||||
|
||||
var mtime = row.mtime;
|
||||
//Zotero.debug("Stored mtime is " + row.mtime);
|
||||
//Zotero.debug("File mtime is " + fmtime);
|
||||
|
||||
|
@ -871,8 +872,8 @@ 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[item.id]) {
|
||||
Zotero.debug("Storage mod time (" + row.storageModTime + ") "
|
||||
if (mtime == itemModTimes[item.id]) {
|
||||
Zotero.debug("Storage mod time (" + mtime + ") "
|
||||
+ "hasn't changed for item " + lk);
|
||||
return;
|
||||
}
|
||||
|
@ -882,8 +883,6 @@ Zotero.Sync.Storage = new function () {
|
|||
updatedStates[item.id] = Zotero.Sync.Storage.SYNC_STATE_FORCE_DOWNLOAD;
|
||||
}
|
||||
|
||||
var mtime = row.mtime;
|
||||
|
||||
// If stored time matches file, it hasn't changed locally
|
||||
if (mtime == fmtime) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user