From a9c99fd12a65b7b56a3fbd8b4c2aa1fc6337ab2a Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Fri, 2 Dec 2016 13:19:16 -0500 Subject: [PATCH] kv: make kvdb can print itself statistics. Signed-off-by: Jianpeng Ma --- src/kv/KeyValueDB.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kv/KeyValueDB.h b/src/kv/KeyValueDB.h index cb44f113b79..cfaea4b6ffd 100644 --- a/src/kv/KeyValueDB.h +++ b/src/kv/KeyValueDB.h @@ -11,6 +11,7 @@ #include "include/memory.h" #include #include "include/encoding.h" +#include "common/Formatter.h" using std::string; /** @@ -312,6 +313,9 @@ public: return -EOPNOTSUPP; } + virtual void get_statistics(Formatter *f) { + return; + } protected: /// List of matching prefixes and merge operators std::vector