Added more logging to service.js to help me figure out the caching problem.
Added more logging to service.js to help me figure out the caching problem.
--- a/services/sync/modules/service.js
+++ b/services/sync/modules/service.js
@@ -572,19 +572,16 @@ WeaveSvc.prototype = {
let self = yield;
let ret = false; // false to abort sync
let reset = false;
this._log.debug("Fetching global metadata record");
let meta = yield Records.import(self.cb, this.clusterURL +
this.username + "/meta/global");
- // DEBUG: Just for now, i'm turning off wiping of server based on version
- // mismatch. Don't commit this line:
- meta.payload.storageVersion = MIN_SERVER_STORAGE_VERSION; // this
this._log.debug("Min server storage version is " + MIN_SERVER_STORAGE_VERSION);
if (meta) {
this._log.debug("payload storage version is " +
meta.payload.storageVersion);
}
if (!meta || !meta.payload.storageVersion || !meta.payload.syncID ||
Svc.Version.compare(MIN_SERVER_STORAGE_VERSION,