提交 2cabdb8f 编写于 作者: J Jonathan Lee 提交者: Facebook Github Bot

Increase buffer size

Summary:
When compiling with GCC>=7.0.0, "db/internal_stats.cc" fails to compile as the data being written to the buffer potentially exceeds its size.

This fix simply doubles the size of the buffer, thus accommodating the max possible data size.
Closes https://github.com/facebook/rocksdb/pull/1635

Differential Revision: D4302162

Pulled By: yiwu-arbug

fbshipit-source-id: c76ad59
上级 4a17b47b
......@@ -918,7 +918,7 @@ int InternalStats::DumpCFMapStats(
}
void InternalStats::DumpCFStats(std::string* value) {
char buf[1000];
char buf[2000];
// Per-ColumnFamily stats
PrintLevelStatsHeader(buf, sizeof(buf), cfd_->GetName());
value->append(buf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册