Bug 1021419: Implement per-table update and gethash requests

This commit is contained in:
Monica Chew
2014-06-12 10:24:03 -07:00
parent 09afc7a871
commit 8774d0ff72
21 changed files with 498 additions and 487 deletions

View File

@@ -318,7 +318,7 @@ Classifier::ApplyUpdates(nsTArray<TableUpdate*>* aUpdates)
nsresult rv = BackupTables();
NS_ENSURE_SUCCESS(rv, rv);
LOG(("Applying table updates."));
LOG(("Applying %d table updates.", aUpdates->Length()));
for (uint32_t i = 0; i < aUpdates->Length(); i++) {
// Previous ApplyTableUpdates() may have consumed this update..
@@ -576,8 +576,9 @@ Classifier::ApplyTableUpdates(nsTArray<TableUpdate*>* aUpdates,
nsAutoPtr<HashStore> store(new HashStore(aTable, mStoreDirectory));
if (!store)
if (!store) {
return NS_ERROR_FAILURE;
}
// take the quick exit if there is no valid update for us
// (common case)