]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
kv: make kvdb can print itself statistics.
authorJianpeng Ma <jianpeng.ma@intel.com>
Fri, 2 Dec 2016 18:19:16 +0000 (13:19 -0500)
committerSage Weil <sage@redhat.com>
Fri, 2 Dec 2016 18:21:29 +0000 (13:21 -0500)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/kv/KeyValueDB.h

index cb44f113b798eb1bef1db4cade5013f4f6b1dfe8..cfaea4b6ffdede5cd307a5f8481bfb56823c7997 100644 (file)
@@ -11,6 +11,7 @@
 #include "include/memory.h"
 #include <boost/scoped_ptr.hpp>
 #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<std::pair<std::string,