www

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

commit 4502b5e9902dd07f2e5c4acd965fb65b4a0d66ad
parent 5e3c7bf63d3b5c00fed03c1da97fe5bb338b7db3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  2 May 2017 16:56:55 -0400

Debugging for sync issue

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

diff --git a/chrome/content/zotero/xpcom/sync/syncEngine.js b/chrome/content/zotero/xpcom/sync/syncEngine.js @@ -824,7 +824,13 @@ Zotero.Sync.Data.Engine.prototype._startUpload = Zotero.Promise.coroutine(functi let unsyncedKeys = ids.map(id => objectsClass.getLibraryAndKeyFromID(id).key); let origUnsynced = unsyncedKeys; // TEMP let queueKeys = yield Zotero.Sync.Data.Local.getObjectsFromSyncQueue(objectType, this.libraryID); + let num = unsyncedKeys.length; unsyncedKeys = Zotero.Utilities.arrayDiff(unsyncedKeys, queueKeys); + if (unsyncedKeys.length < num) { + Zotero.debug(`Skipping ${num - unsyncedKeys.length} key(s) in sync queue`); + Zotero.debug(Zotero.Utilities.arrayDiff(unsyncedKeys, queueKeys)); + } + // TEMP //ids = unsyncedKeys.map(key => objectsClass.getIDFromLibraryAndKey(this.libraryID, key)); let missing = [];