From 96a461b6acf629f1a9740fedc07b7f05375add86 Mon Sep 17 00:00:00 2001 From: Dev Parikh Date: Wed, 23 Feb 2022 23:22:42 +0000 Subject: [PATCH] [#499] docdb: Fixed overflow bug when printing records in during a compaction. Summary: Fixed bug where when printing number of records in and records dropped during a compaction, the number would overflow due to using %d in the print statement instead of %llu Test Plan: Manually observed log files Reviewers: jmeehan Reviewed By: jmeehan Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D15619 --- src/yb/rocksdb/db/compaction_job.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yb/rocksdb/db/compaction_job.cc b/src/yb/rocksdb/db/compaction_job.cc index 66cdd6ff0d55..581b67f1c0e3 100644 --- a/src/yb/rocksdb/db/compaction_job.cc +++ b/src/yb/rocksdb/db/compaction_job.cc @@ -525,7 +525,7 @@ Status CompactionJob::Install(const MutableCFOptions& mutable_cf_options) { "[%s] compacted to: %s, MB/sec: %.1f rd, %.1f wr, level %d, " "files in(%d, %d) out(%d) " "MB in(%.1f, %.1f) out(%.1f), read-write-amplify(%.1f) " - "write-amplify(%.1f) %s, records in: %d, records dropped: %d\n", + "write-amplify(%.1f) %s, records in: %llu, records dropped: %llu\n", cfd->GetName().c_str(), vstorage->LevelSummary(&tmp), (stats.bytes_read_non_output_levels + stats.bytes_read_output_level) / static_cast(stats.micros),