From e1f6cef69573fae727ce6e7a64b4ab2e2b5040cf Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 30 Mar 2010 14:04:28 -0700 Subject: [PATCH] msg: fix uses of MMonObserveNotify destructor to use put() --- src/ceph.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceph.cc b/src/ceph.cc index bc9e252182c8e..533ccaaa324c2 100644 --- a/src/ceph.cc +++ b/src/ceph.cc @@ -107,7 +107,7 @@ void handle_notify(MMonObserveNotify *notify) if (ceph_fsid_compare(¬ify->fsid, &mc.monmap.fsid)) { dout(0) << notify->get_source_inst() << " notify fsid " << notify->fsid << " != " << mc.monmap.fsid << dendl; - delete notify; + notify->put(); return; } @@ -233,7 +233,7 @@ void handle_notify(MMonObserveNotify *notify) messenger->shutdown(); } - delete notify; + notify->put(); } static void send_observe_requests(); -- 2.39.5