diff options
author | Patrick Donnelly <pdonnell@redhat.com> | 2018-07-29 03:16:02 +0200 |
---|---|---|
committer | Patrick Donnelly <pdonnell@redhat.com> | 2018-08-15 22:35:30 +0200 |
commit | d2a202af39fda43b23504d9b53438879bc9c12dc (patch) | |
tree | 9df421aa29726fdf0554d793627aeb7e829cce6d /src/messages/MExportDir.h | |
parent | common: add templated Context factory (diff) | |
download | ceph-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.h | 2 |
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; |