diff --git a/db/db_impl.cc b/db/db_impl.cc index 641825ee8a..6edd62f936 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 ae00663517..c56900accb 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); } } + }