]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: use ref_t<M>
authorKefu Chai <kchai@redhat.com>
Tue, 16 Apr 2019 04:13:48 +0000 (12:13 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 17 Apr 2019 22:59:42 +0000 (06:59 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/CommandTable.h

index 3c16d8d4054527a404c1e93feec01bf19c360ae2..fb40101e3ca0445fc3c48de5d5810ec518677718 100644 (file)
@@ -29,7 +29,7 @@ class CommandOp
   ceph::buffer::list   *outbl;
   std::string  *outs;
 
-  MCommand::ref get_message(const uuid_d &fsid) const
+  ceph::ref_t<MCommand> get_message(const uuid_d &fsid) const
   {
     auto m = make_message<MCommand>(fsid);
     m->cmd = cmd;