From e45c7a84448c389822c1a9585976343ca9dbf10b Mon Sep 17 00:00:00 2001 From: Dhruba Borthakur Date: Tue, 26 Feb 2013 00:13:17 -0800 Subject: [PATCH] Abilty to support upto a million .sst files in the database Summary: There was an artifical limit of 50K files per database. This is insifficient if the database is 1 TB in size and each file is 2 MB. Test Plan: make check Reviewers: sheki, emayanke Reviewed By: emayanke CC: leveldb Differential Revision: https://reviews.facebook.net/D8919 --- db/db_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index 8019051329..d96db23efb 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -118,7 +118,7 @@ Options SanitizeOptions(const std::string& dbname, Options result = src; result.comparator = icmp; result.filter_policy = (src.filter_policy != nullptr) ? ipolicy : nullptr; - ClipToRange(&result.max_open_files, 20, 50000); + ClipToRange(&result.max_open_files, 20, 1000000); ClipToRange(&result.write_buffer_size, 64<<10, 1<<30); ClipToRange(&result.block_size, 1<<10, 4<<20); if (result.info_log == nullptr) {