diff --git a/db/db_impl.cc b/db/db_impl.cc index 641825ee8..6edd62f93 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -276,6 +276,7 @@ Options SanitizeOptions(const std::string& dbname, DBOptions SanitizeOptions(const std::string& dbname, const DBOptions& src) { DBOptions result = src; + // result.max_open_files means an "infinite" open files. if (result.max_open_files != -1) { ClipToRange(&result.max_open_files, 20, 1000000); diff --git a/util/statistics.h b/util/statistics.h index ae0066351..c56900acc 100644 --- a/util/statistics.h +++ b/util/statistics.h @@ -86,4 +86,5 @@ inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, statistics->setTickerCount(ticker_type, count); } } + }