Clarify comment for local object version updating behavior
This commit is contained in:
parent
4c46ebcf96
commit
e21a914a1f
1 changed files with 5 additions and 4 deletions
|
@ -940,10 +940,11 @@ Zotero.Sync.Data.Engine.prototype._uploadObjects = Zotero.Promise.coroutine(func
|
|||
toCache.push(current);
|
||||
}
|
||||
else {
|
||||
// This won't reflect the actual version of the item on the server, but
|
||||
// it will guarantee that the item won't be redownloaded unnecessarily
|
||||
// in the case of a full sync, because the version will be higher than
|
||||
// whatever version is on the server.
|
||||
// This won't necessarily reflect the actual version of the object on the server,
|
||||
// since objects are uploaded in batches and we only get the final version, but it
|
||||
// will guarantee that the item won't be redownloaded unnecessarily in the case of
|
||||
// a full sync, because the version will be higher than whatever version is on the
|
||||
// server.
|
||||
batch[index].version = libraryVersion
|
||||
toCache.push(batch[index]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue