]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/OSDMap: put OSDMap[::Incremental] itself in mempool too
authorSage Weil <sage@redhat.com>
Tue, 25 Apr 2017 22:26:08 +0000 (18:26 -0400)
committerSage Weil <sage@redhat.com>
Tue, 25 Apr 2017 22:26:08 +0000 (18:26 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSDMap.cc
src/osd/OSDMap.h

index 10223af137e36db055fdba88a09a1c67dc19f7f7..9fb9000a0dc3cf2bdd3df006c304e4a685db35ac 100644 (file)
  
 #define dout_subsys ceph_subsys_osd
 
+MEMPOOL_DEFINE_OBJECT_FACTORY(OSDMap, osdmap, osdmap);
+MEMPOOL_DEFINE_OBJECT_FACTORY(OSDMap::Incremental, osdmap_inc, osdmap);
+
+
 // ----------------------------------
 // osd_info_t
 
index 691a413b60e35bbae2bb8cf6a5677431281eb594..aa431389dc0bbd9026982412f594e87e1d8ed94d 100644 (file)
@@ -117,10 +117,13 @@ ostream& operator<<(ostream& out, const osd_xinfo_t& xi);
 /** OSDMap
  */
 class OSDMap {
-
 public:
+  MEMPOOL_CLASS_HELPERS();
+
   class Incremental {
   public:
+    MEMPOOL_CLASS_HELPERS();
+
     /// feature bits we were encoded with.  the subsequent OSDMap
     /// encoding should match.
     uint64_t encode_features;