]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: move peering evt into pool
authorSage Weil <sage@redhat.com>
Mon, 17 Oct 2016 18:20:10 +0000 (14:20 -0400)
committerSage Weil <sage@redhat.com>
Fri, 11 Nov 2016 19:59:54 +0000 (14:59 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc
src/osd/PG.h

index 6923c05e1aee0158c14deb9e69d6f33af5fcd617..01602e58c31ddb145060a7a42d69cb9f391e0693 100644 (file)
@@ -84,6 +84,8 @@ static ostream& _prefix(std::ostream *_dout, T *t)
   return *_dout << t->gen_prefix();
 }
 
+MEMPOOL_DEFINE_OBJECT_FACTORY(PG::CephPeeringEvt, pg_peering_evt, osd);
+
 void PG::get(const char* tag)
 {
   ref++;
index e9eaa6d8751a50ae5dbc83677c3f772aea42b174..043a7c6e51e949651119c1d7aa26f5a1ec96947d 100644 (file)
@@ -1368,6 +1368,7 @@ public:
     boost::intrusive_ptr< const boost::statechart::event_base > evt;
     string desc;
   public:
+    MEMPOOL_CLASS_HELPERS();
     template <class T>
     CephPeeringEvt(epoch_t epoch_sent,
                   epoch_t epoch_requested,