]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/kv/KeyValueDB.h
update sources to 12.2.2
[ceph.git] / ceph / src / kv / KeyValueDB.h
index 37a78480f140814a26ccdb72d59521828bf9ed43..818884a1a97edbf5dd6c11ab9978776903d0e934 100644 (file)
@@ -12,6 +12,7 @@
 #include <boost/scoped_ptr.hpp>
 #include "include/encoding.h"
 #include "common/Formatter.h"
+#include "common/perf_counters.h"
 
 using std::string;
 /**
@@ -350,6 +351,15 @@ public:
   virtual void get_statistics(Formatter *f) {
     return;
   }
+
+  /**
+   * Return your perf counters if you have any.  Subclasses are not
+   * required to implement this, and callers must respect a null return
+   * value.
+   */
+  virtual PerfCounters *get_perf_counters() {
+    return nullptr;
+  }
 protected:
   /// List of matching prefixes and merge operators
   std::vector<std::pair<std::string,