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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store.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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/indexed_db/indexed_db_backing_store_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_backing_store.cc
diff --git a/content/browser/indexed_db/indexed_db_backing_store.cc b/content/browser/indexed_db/indexed_db_backing_store.cc
index ffb0f8fc5f69577c84d32e8805a742aa6649faf5..a05267af2ed2409edf8c62b1908c75fc1ed33681 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store.cc
@@ -1064,7 +1064,9 @@ class DefaultLevelDBFactory : public LevelDBFactory {
const LevelDBComparator* comparator,
std::unique_ptr<LevelDBDatabase>* db,
bool* is_disk_full) override {
- return LevelDBDatabase::Open(file_name, comparator, db, is_disk_full);
+ return LevelDBDatabase::Open(
+ file_name, comparator,
+ LevelDBDatabase::kDefaultMaxOpenIteratorsPerDatabase, db, is_disk_full);
}
Status DestroyLevelDB(const FilePath& file_name) override {
return LevelDBDatabase::Destroy(file_name);
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/indexed_db/indexed_db_backing_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698