extend temp str buffer size
This commit is contained in:
parent
84c3577af9
commit
487bba4348
@ -62,7 +62,7 @@ void DumpDBFileSummary(const DBOptions& options, const std::string& dbname) {
|
||||
break;
|
||||
case kLogFile:
|
||||
env->GetFileSize(dbname + "/" + file, &file_size);
|
||||
char str[8];
|
||||
char str[16];
|
||||
snprintf(str, sizeof(str), "%" PRIu64, file_size);
|
||||
wal_info.append(file).append(" size: ").
|
||||
append(str).append(" ; ");
|
||||
@ -115,7 +115,7 @@ void DumpDBFileSummary(const DBOptions& options, const std::string& dbname) {
|
||||
if (ParseFileName(file, &number, &type)) {
|
||||
if (type == kLogFile) {
|
||||
env->GetFileSize(options.wal_dir + "/" + file, &file_size);
|
||||
char str[8];
|
||||
char str[16];
|
||||
snprintf(str, sizeof(str), "%" PRIu64, file_size);
|
||||
wal_info.append(file).append(" size: ").
|
||||
append(str).append(" ; ");
|
||||
|
Loading…
Reference in New Issue
Block a user