diff --git a/include/rocksdb/perf_context.h b/include/rocksdb/perf_context.h index c0c0661b61..31740796cd 100644 --- a/include/rocksdb/perf_context.h +++ b/include/rocksdb/perf_context.h @@ -211,8 +211,8 @@ struct PerfContext { uint64_t get_cpu_nanos; - std::map* level_to_perf_context; - bool per_level_perf_context_enabled; + std::map* level_to_perf_context = nullptr; + bool per_level_perf_context_enabled = false; }; // Get Thread-local PerfContext object pointer