From 3b38cbf44cf20239ca6725a7033942d395d80902 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 30 Mar 2010 14:52:56 -0700 Subject: [PATCH] msg: fix uses of MOSDPGNotify destructor to use put() --- src/osd/OSD.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 24b6121c5b0a7..26cf10c4993af 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -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(); } -- 2.39.5