www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 95ba68a75727f8087dcd43175a7d9a1bf47c3b99
parent 55688a8104c6b44dfccbd1b6b3ee9502b332cf7e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 26 Apr 2016 01:34:50 -0400

Don't skip uploads of more than 25 items…

Fixes #965

Diffstat:
Mchrome/content/zotero/xpcom/sync/syncEngine.js | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/chrome/content/zotero/xpcom/sync/syncEngine.js b/chrome/content/zotero/xpcom/sync/syncEngine.js @@ -715,7 +715,6 @@ Zotero.Sync.Data.Engine.prototype._startUpload = Zotero.Promise.coroutine(functi libraryVersion = yield this._uploadObjects( objectType, objectIDs[objectType], libraryVersion ); - Zotero.debug("Library version is " + libraryVersion); } Zotero.debug(JSON.stringify(objectDeletions)); @@ -793,8 +792,6 @@ Zotero.Sync.Data.Engine.prototype._uploadSettings = Zotero.Promise.coroutine(fun Zotero.Sync.Data.Engine.prototype._uploadObjects = Zotero.Promise.coroutine(function* (objectType, ids, libraryVersion) { let objectTypePlural = Zotero.DataObjectUtilities.getObjectTypePlural(objectType); let objectsClass = Zotero.DataObjectUtilities.getObjectsClassForObjectType(objectType); - Zotero.debug("Uploading " + objectTypePlural); - Zotero.debug(ids); let queue = []; for (let id of ids) { @@ -806,15 +803,13 @@ Zotero.Sync.Data.Engine.prototype._uploadObjects = Zotero.Promise.coroutine(func }); } - Zotero.debug(queue); - let failureDelayGenerator = null; while (queue.length) { // Get a slice of the queue and generate JSON for objects if necessary let batch = []; let numSkipped = 0; - for (let i = 0; i < queue.length && queue.length < this.uploadBatchSize; i++) { + for (let i = 0; i < queue.length && i < this.uploadBatchSize; i++) { let o = queue[i]; // Skip requests that failed with 4xx if (o.failed) {