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
This commit is contained in:
Jonathan Lee 2016-12-09 11:39:16 -08:00 committed by Facebook Github Bot
parent 4a17b47bb5
commit 2cabdb8f44

View File

@ -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);