Fix excessive file sync mtime updates/checks, but for real this time
This commit is contained in:
parent
1fadf1150e
commit
33334d9c01
1 changed files with 3 additions and 4 deletions
|
@ -863,6 +863,7 @@ Zotero.Sync.Storage = new function () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var mtime = row.mtime;
|
||||||
//Zotero.debug("Stored mtime is " + row.mtime);
|
//Zotero.debug("Stored mtime is " + row.mtime);
|
||||||
//Zotero.debug("File mtime is " + fmtime);
|
//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]);
|
Zotero.debug("Remote mod time for item " + lk + " is " + itemModTimes[item.id]);
|
||||||
|
|
||||||
// Ignore attachments whose stored mod times haven't changed
|
// Ignore attachments whose stored mod times haven't changed
|
||||||
if (row.storageModTime == itemModTimes[item.id]) {
|
if (mtime == itemModTimes[item.id]) {
|
||||||
Zotero.debug("Storage mod time (" + row.storageModTime + ") "
|
Zotero.debug("Storage mod time (" + mtime + ") "
|
||||||
+ "hasn't changed for item " + lk);
|
+ "hasn't changed for item " + lk);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -882,8 +883,6 @@ Zotero.Sync.Storage = new function () {
|
||||||
updatedStates[item.id] = Zotero.Sync.Storage.SYNC_STATE_FORCE_DOWNLOAD;
|
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 stored time matches file, it hasn't changed locally
|
||||||
if (mtime == fmtime) {
|
if (mtime == fmtime) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue