]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
make statistics ToString function empty instead of pure virtual v3.4
authorLei Jin <lei@fb.com>
Mon, 11 Aug 2014 22:04:41 +0000 (15:04 -0700)
committerLei Jin <lei@fb.com>
Mon, 11 Aug 2014 22:04:41 +0000 (15:04 -0700)
Summary: as title

Test Plan: make release

Reviewers: yhchiang, sdong

Reviewed By: sdong

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D21549

include/rocksdb/statistics.h

index f59127212302956056bff3fe19d3134b5f434fe5..4b17e481eca4c9eae8e4bfce386d6b8bd722c39d 100644 (file)
@@ -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 {