diff options
author | Patrick Donnelly <pdonnell@redhat.com> | 2018-07-31 22:59:52 +0200 |
---|---|---|
committer | Patrick Donnelly <pdonnell@redhat.com> | 2018-08-15 22:36:38 +0200 |
commit | e0d3db89043e6a595cd10a883532e8d9195e36ca (patch) | |
tree | 75878dab9893fb64c488265ada39e106d0396893 /src/messages/MDentryLink.h | |
parent | mds: use message factory to avoid leaks (diff) | |
download | ceph-e0d3db89043e6a595cd10a883532e8d9195e36ca.tar.xz ceph-e0d3db89043e6a595cd10a883532e8d9195e36ca.zip |
msg: cleanup factory/ref definition in messages
This eliminates duplicate code definitions.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Diffstat (limited to 'src/messages/MDentryLink.h')
-rw-r--r-- | src/messages/MDentryLink.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/messages/MDentryLink.h b/src/messages/MDentryLink.h index 8b483c88185..3ec69afe128 100644 --- a/src/messages/MDentryLink.h +++ b/src/messages/MDentryLink.h @@ -20,11 +20,8 @@ #include "msg/Message.h" -class MDentryLink : public Message { +class MDentryLink : public MessageInstance<MDentryLink> { public: - typedef boost::intrusive_ptr<MDentryLink> ref; - typedef boost::intrusive_ptr<MDentryLink const> const_ref; - using factory = MessageFactory<MDentryLink>; friend factory; private: dirfrag_t subtree; @@ -42,9 +39,9 @@ private: protected: MDentryLink() : - Message(MSG_MDS_DENTRYLINK) { } + MessageInstance(MSG_MDS_DENTRYLINK) { } MDentryLink(dirfrag_t r, dirfrag_t df, std::string_view n, bool p) : - Message(MSG_MDS_DENTRYLINK), + MessageInstance(MSG_MDS_DENTRYLINK), subtree(r), dirfrag(df), dn(n), |