Skip to content

Commit

Permalink
make statistics ToString function empty instead of pure virtual
Browse files Browse the repository at this point in the history
Summary: as title

Test Plan: make release

Reviewers: yhchiang, sdong

Reviewed By: sdong

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D21549
  • Loading branch information
Lei Jin committed Aug 11, 2014
1 parent 18efdba commit 37c6740
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/rocksdb/statistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@ class Statistics {
virtual void measureTime(uint32_t histogramType, uint64_t time) = 0;

// String representation of the statistic object.
virtual std::string ToString() const = 0;
virtual std::string ToString() const {
// Do nothing by default
return std::string("ToString(): not implemented");
}

// Override this function to disable particular histogram collection
virtual bool HistEnabledForType(uint32_t type) const {
Expand Down

0 comments on commit 37c6740

Please sign in to comment.