mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 536594 - Warn on record creation failure but continue the sync
Wrap createRecord and encrypt incase an engine fails to create one or more of the records similar to how process incoming records are wrapped.
This commit is contained in:
parent
5a569bea45
commit
138e3682ad
@ -642,12 +642,17 @@ SyncEngine.prototype = {
|
||||
this._store.cache.enabled = false;
|
||||
|
||||
for (let id in this._tracker.changedIDs) {
|
||||
let out = this._createRecord(id);
|
||||
if (this._log.level <= Log4Moz.Level.Trace)
|
||||
this._log.trace("Outgoing: " + out);
|
||||
try {
|
||||
let out = this._createRecord(id);
|
||||
if (this._log.level <= Log4Moz.Level.Trace)
|
||||
this._log.trace("Outgoing: " + out);
|
||||
|
||||
out.encrypt(ID.get("WeaveCryptoID"));
|
||||
up.pushData(out);
|
||||
out.encrypt(ID.get("WeaveCryptoID"));
|
||||
up.pushData(out);
|
||||
}
|
||||
catch(ex) {
|
||||
this._log.warn("Error creating record: " + Utils.exceptionStr(ex));
|
||||
}
|
||||
|
||||
// Partial upload
|
||||
if ((++count % MAX_UPLOAD_RECORDS) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user