fix append bug in DumpDBFileSummary()
This commit is contained in:
parent
43e9825625
commit
84c3577af9
@ -65,7 +65,7 @@ void DumpDBFileSummary(const DBOptions& options, const std::string& dbname) {
|
|||||||
char str[8];
|
char str[8];
|
||||||
snprintf(str, sizeof(str), "%" PRIu64, file_size);
|
snprintf(str, sizeof(str), "%" PRIu64, file_size);
|
||||||
wal_info.append(file).append(" size: ").
|
wal_info.append(file).append(" size: ").
|
||||||
append(str, sizeof(str)).append(" ;");
|
append(str).append(" ; ");
|
||||||
break;
|
break;
|
||||||
case kTableFile:
|
case kTableFile:
|
||||||
if (++file_num < 10) {
|
if (++file_num < 10) {
|
||||||
@ -118,7 +118,7 @@ void DumpDBFileSummary(const DBOptions& options, const std::string& dbname) {
|
|||||||
char str[8];
|
char str[8];
|
||||||
snprintf(str, sizeof(str), "%" PRIu64, file_size);
|
snprintf(str, sizeof(str), "%" PRIu64, file_size);
|
||||||
wal_info.append(file).append(" size: ").
|
wal_info.append(file).append(" size: ").
|
||||||
append(str, sizeof(str)).append(" ;");
|
append(str).append(" ; ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user