From 37c6740c383bb9a6ee2747b04f08bc77fcfa10c5 Mon Sep 17 00:00:00 2001 From: Lei Jin Date: Mon, 11 Aug 2014 15:04:41 -0700 Subject: [PATCH] make statistics ToString function empty instead of pure virtual 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/rocksdb/statistics.h b/include/rocksdb/statistics.h index f5912721230..4b17e481eca 100644 --- a/include/rocksdb/statistics.h +++ b/include/rocksdb/statistics.h @@ -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 {