skip getting meta records for records already in the meta list

This commit is contained in:
Dan Mills 2009-04-08 18:08:45 -07:00
parent 98d074f59c
commit 0d0030a423

View File

@ -481,7 +481,8 @@ SyncEngine.prototype = {
for (let id in this._tracker.changedIDs) {
let out = this._createRecord(id);
this._log.trace("Outgoing:\n" + out);
if (!out.deleted)
// skip getting siblings of already processed and deleted records
if (!out.deleted && !(out.id in meta))
this._store.createMetaRecords(out.id, meta);
yield out.encrypt(self.cb, ID.get('WeaveCryptoID').password);
up.pushData(JSON.parse(out.serialize())); // FIXME: inefficient