зеркало из https://github.com/mozilla/gecko-dev.git
Remote.put doesn't require the data arg anymore
This commit is contained in:
Родитель
9ad12df38a
Коммит
34c0adde08
|
@ -512,7 +512,7 @@ FileEngine.prototype = {
|
|||
yield this._keys.initialize(self.cb, this.engineId);
|
||||
this._file.data = {};
|
||||
yield this._merge.async(this, self.cb);
|
||||
yield this._file.put(self.cb, this._file.data);
|
||||
yield this._file.put(self.cb);
|
||||
},
|
||||
|
||||
// NOTE: Assumes this._file has latest server data
|
||||
|
@ -541,7 +541,7 @@ FileEngine.prototype = {
|
|||
yield this._keys.getKeyAndIV(self.cb, this.engineId);
|
||||
yield this._file.get(self.cb);
|
||||
yield this._merge.async(this, self.cb);
|
||||
yield this._file.put(self.cb, this._file.data);
|
||||
yield this._file.put(self.cb);
|
||||
|
||||
} catch (e if e.status == 404) {
|
||||
this._log.info("Initial upload to server");
|
||||
|
|
|
@ -349,6 +349,7 @@ WeaveSvc.prototype = {
|
|||
this._log.info("Server version too low. Wiping server data.");
|
||||
yield this._serverWipe.async(this, self.cb);
|
||||
yield this._uploadVersion.async(this, self.cb);
|
||||
yield ClientData.upload
|
||||
|
||||
} else if (ret.responseText > STORAGE_FORMAT_VERSION) {
|
||||
// XXX should we do something here?
|
||||
|
|
Загрузка…
Ссылка в новой задаче