diff --git a/util/perf_level.cc b/util/perf_level.cc index 746510f21..5d2ae4b47 100644 --- a/util/perf_level.cc +++ b/util/perf_level.cc @@ -4,9 +4,10 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#include #include -#include "util/perf_level_imp.h" #include "port/port.h" +#include "util/perf_level_imp.h" namespace rocksdb { @@ -17,6 +18,8 @@ __thread PerfLevel perf_level = kEnableCount; #endif void SetPerfLevel(PerfLevel level) { + assert(level > kUninitialized); + assert(level < kOutOfBounds); perf_level = level; }