diff --git a/HISTORY.md b/HISTORY.md index 18ff661b0e..6e7a45fc83 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -27,6 +27,7 @@ ### Public API change * Remove obsolete implementation details FullKey and ParseFullKey from public API * Add a public API RateLimiter::GetTotalPendingRequests() for the total number of requests that are pending for bytes in the rate limiter. +* Change `SstFileMetaData::size` from `size_t` to `uint64_t`. * Made Statistics extend the Customizable class and added a CreateFromString method. Implementations of Statistics need to be registered with the ObjectRegistry and to implement a Name() method in order to be created via this method. * Extended `FlushJobInfo` and `CompactionJobInfo` in listener.h to provide information about the blob files generated by a flush/compaction and garbage collected during compaction in Integrated BlobDB. Added struct members `blob_file_addition_infos` and `blob_file_garbage_infos` that contain this information. * Extended parameter `output_file_names` of `CompactFiles` API to also include paths of the blob files generated by the compaction in Integrated BlobDB. diff --git a/include/rocksdb/metadata.h b/include/rocksdb/metadata.h index 57c8a842a5..7d9cb6a5d5 100644 --- a/include/rocksdb/metadata.h +++ b/include/rocksdb/metadata.h @@ -62,7 +62,7 @@ struct SstFileMetaData { file_checksum_func_name(_file_checksum_func_name) {} // File size in bytes. - size_t size; + uint64_t size; // The name of the file. std::string name; // The id of the file. diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index dc32c10753..09848baf27 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -5407,7 +5407,7 @@ class Benchmark { } if (levelMeta.level == 0) { for (auto& fileMeta : levelMeta.files) { - fprintf(stdout, "Level[%d]: %s(size: %" ROCKSDB_PRIszt " bytes)\n", + fprintf(stdout, "Level[%d]: %s(size: %" PRIi64 " bytes)\n", levelMeta.level, fileMeta.name.c_str(), fileMeta.size); } } else {