]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: fix uses of MOSDPGNotify destructor to use put()
authorGreg Farnum <gregf@hq.newdream.net>
Tue, 30 Mar 2010 21:52:56 +0000 (14:52 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Wed, 31 Mar 2010 21:59:37 +0000 (14:59 -0700)
src/osd/OSD.cc

index 24b6121c5b0a7c16aea3a5248833dbf397d1c531..26cf10c4993af961cbcbb63f385cc1f92ce84ea5 100644 (file)
@@ -1973,7 +1973,7 @@ void OSD::handle_osd_map(MOSDMap *m)
   assert(osd_lock.is_locked());
   if (ceph_fsid_compare(&m->fsid, &monc->get_fsid())) {
     dout(0) << "handle_osd_map fsid " << m->fsid << " != " << monc->get_fsid() << dendl;
-    delete m;
+    m->put();
     return;
   }
 
@@ -2258,7 +2258,7 @@ void OSD::handle_osd_map(MOSDMap *m)
 
   //if (osdmap->get_epoch() == 1) store->sync();     // in case of early death, blah
 
-  delete m;
+  m->put();
 
 
   if (is_booting())
@@ -3216,7 +3216,7 @@ void OSD::handle_pg_notify(MOSDPGNotify *m)
   if (created)
     update_heartbeat_peers();
 
-  delete m;
+  m->put();
 }