Unverified Commit 04aab1c4 authored by yiwu-arbug's avatar yiwu-arbug Committed by GitHub

Fix missing-braces compile warning (#85)

Summary:
Fixing -Wmissing-braces compile warning, e.g. https://travis-ci.org/pingcap/rust-rocksdb/jobs/587241018

Test Plan:
`cmake .. -DCMAKE_CXX_FLAGS="-Wmissing-braces" && make src/titan_stats.o` without compile error.
Signed-off-by: 's avatarYi Wu <yiwu@pingcap.com>
parent ff30897d
......@@ -72,11 +72,11 @@ const std::unordered_map<std::string, TitanInternalStats::StatsType>
const std::array<std::string,
static_cast<int>(InternalOpType::INTERNAL_OP_ENUM_MAX)>
TitanInternalStats::internal_op_names = {
TitanInternalStats::internal_op_names = {{
"Flush ",
"Compaction",
"GC ",
};
}};
void TitanInternalStats::DumpAndResetInternalOpStats(LogBuffer* log_buffer) {
constexpr double GB = 1.0 * 1024 * 1024 * 1024;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment