Skip to content

Commit

Permalink
Fixed a bug in RocksDB Statistics where flush is considered as compac…
Browse files Browse the repository at this point in the history
…tion

Summary: Fixed a bug in RocksDB Statistics where flush is considered as compaction

Test Plan: unit test

Reviewers: sdong, IslamAbdelRahman, rven, kradhakrishnan, andrewkr

Reviewed By: andrewkr

Subscribers: andrewkr, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D56271
  • Loading branch information
yhchiang committed Apr 12, 2016
1 parent 8e0e22f commit ae21d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/flush_job.cc
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ Status FlushJob::WriteLevel0Table(const autovector<MemTable*>& mems,
cfd_->internal_stats()->AddCompactionStats(0 /* level */, stats);
cfd_->internal_stats()->AddCFStats(InternalStats::BYTES_FLUSHED,
meta->fd.GetFileSize());
RecordTick(stats_, COMPACT_WRITE_BYTES, meta->fd.GetFileSize());
RecordTick(stats_, FLUSH_WRITE_BYTES, meta->fd.GetFileSize());
return s;
}

Expand Down

0 comments on commit ae21d71

Please sign in to comment.