From f275a5f0c4f17c732917864a876b625a38050832 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 30 Mar 2010 14:35:20 -0700 Subject: [PATCH] msg: fix uses of MOSDBoot destructor to use put() --- src/mon/OSDMonitor.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index bb115cd128753..30a3cee4d070f 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -388,7 +388,7 @@ bool OSDMonitor::preprocess_boot(MOSDBoot *m) { if (ceph_fsid_compare(&m->sb.fsid, &mon->monmap->fsid)) { dout(0) << "preprocess_boot on fsid " << m->sb.fsid << " != " << mon->monmap->fsid << dendl; - delete m; + m->put(); return true; } @@ -396,7 +396,7 @@ bool OSDMonitor::preprocess_boot(MOSDBoot *m) if (!m->get_session()->caps.check_privileges(PAXOS_OSDMAP, MON_CAP_X)) { dout(0) << "got preprocess_boot message from entity with insufficient caps" << m->get_session()->caps << dendl; - delete m; + m->put(); return true; } @@ -427,7 +427,7 @@ bool OSDMonitor::prepare_boot(MOSDBoot *m) // does this osd exist? if (!osdmap.exists(from)) { dout(1) << "boot from non-existent osd" << from << ", increase max_osd?" << dendl; - delete m; + m->put(); return false; } -- 2.39.5