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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_transaction.cc

Issue 2760163002: [IndexedDB] Pool and evict leveldb iterators, to save memory (Closed)
Patch Set: comments Created 3 years, 9 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/leveldb/leveldb_transaction.cc
diff --git a/content/browser/indexed_db/leveldb/leveldb_transaction.cc b/content/browser/indexed_db/leveldb/leveldb_transaction.cc
index 1722549384aeec3bb98b4a0d8afc4ac75507d778..252059f0ad415929d31a8be204790fa22564e216 100644
--- a/content/browser/indexed_db/leveldb/leveldb_transaction.cc
+++ b/content/browser/indexed_db/leveldb/leveldb_transaction.cc
@@ -363,6 +363,9 @@ StringPiece LevelDBTransaction::TransactionIterator::Value() const {
RefreshDataIterator();
return current_->Value();
}
+bool LevelDBTransaction::TransactionIterator::IsDetached() const {
+ return db_iterator_->IsDetached();
+}
void LevelDBTransaction::TransactionIterator::DataChanged() {
data_changed_ = true;

Powered by Google App Engine
This is Rietveld 408576698