summaryrefslogtreecommitdiffstats
path: root/src/messages/MExportDir.h
diff options
context:
space:
mode:
authorPatrick Donnelly <pdonnell@redhat.com>2018-07-29 03:16:02 +0200
committerPatrick Donnelly <pdonnell@redhat.com>2018-08-15 22:35:30 +0200
commitd2a202af39fda43b23504d9b53438879bc9c12dc (patch)
tree9df421aa29726fdf0554d793627aeb7e829cce6d /src/messages/MExportDir.h
parentcommon: add templated Context factory (diff)
downloadceph-d2a202af39fda43b23504d9b53438879bc9c12dc.tar.xz
ceph-d2a202af39fda43b23504d9b53438879bc9c12dc.zip
mds: manage Message lifetime with intrusive_ptr
This change turned out to be far more extensive than I hoped but the end result should prevent all Message-related memory leaks. I believe I fixed several incidentally. Fixes: http://tracker.ceph.com/issues/24306 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Diffstat (limited to 'src/messages/MExportDir.h')
-rw-r--r--src/messages/MExportDir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/messages/MExportDir.h b/src/messages/MExportDir.h
index fc43720d81b..29e9fa7fc04 100644
--- a/src/messages/MExportDir.h
+++ b/src/messages/MExportDir.h
@@ -21,6 +21,8 @@
class MExportDir : public Message {
public:
+ typedef boost::intrusive_ptr<MExportDir>ref;
+ typedef boost::intrusive_ptr<MExportDir const> const_ref;
dirfrag_t dirfrag;
bufferlist export_data;
vector<dirfrag_t> bounds;