Unverified Commit 883cff66 authored by Connor's avatar Connor Committed by GitHub

Fix stats for `io_stats_bytes` (#110)

* count io stats when finishing blob file
Signed-off-by: 's avatarConnor1996 <zbk602423539@gmail.com>
parent 028ef32c
......@@ -146,7 +146,13 @@ void TitanTableBuilder::AddBlob(const Slice& key, const Slice& value,
void TitanTableBuilder::FinishBlobFile() {
if (blob_builder_) {
uint64_t prev_bytes_read = 0;
uint64_t prev_bytes_written = 0;
SavePrevIOBytes(&prev_bytes_read, &prev_bytes_written);
blob_builder_->Finish();
UpdateIOBytes(prev_bytes_read, prev_bytes_written, &io_bytes_read_,
&io_bytes_written_);
if (ok()) {
ROCKS_LOG_INFO(db_options_.info_log,
"Titan table builder finish output file %" PRIu64 ".",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment