Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: content/browser/indexed_db/indexed_db_database.cc

Issue 2708223002: IndexedDB: Optimize range deletion operations (e.g. clearing a store) (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_database.cc
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc
index 239222981f051bdf405c00b47895af89dfa7e8cd..ca13e95dbc151c70c4cee6a548773d9e4f02b851 100644
--- a/content/browser/indexed_db/indexed_db_database.cc
+++ b/content/browser/indexed_db/indexed_db_database.cc
@@ -1679,10 +1679,9 @@ leveldb::Status IndexedDBDatabase::DeleteRangeOperation(
IndexedDBTransaction* transaction) {
IDB_TRACE1("IndexedDBDatabase::DeleteRangeOperation", "txn.id",
transaction->id());
- size_t delete_count = 0;
leveldb::Status s =
backing_store_->DeleteRange(transaction->BackingStoreTransaction(), id(),
- object_store_id, *key_range, &delete_count);
+ object_store_id, *key_range);
if (!s.ok())
return s;
callbacks->OnSuccess();

Powered by Google App Engine
This is Rietveld 408576698