]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson: add move ctor for CephContext and mon::Client 27515/head
authorKefu Chai <kchai@redhat.com>
Thu, 11 Apr 2019 13:03:54 +0000 (21:03 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 11 Apr 2019 13:13:03 +0000 (21:13 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/ceph_context.h
src/crimson/mon/MonClient.cc
src/crimson/mon/MonClient.h

index 6e6832d4f0b41fa44b3eddf982ebe828eba90860..7203452fb170318709738f00163de8080564eafe 100644 (file)
@@ -65,6 +65,7 @@ public:
              int = 0)
     : CephContext{}
   {}
+  CephContext(CephContext&&) = default;
   ~CephContext();
 
   uint32_t get_module_type() const;
index 0a6e1371b236ec490c317470ae43c4b2e154699a..7ed927b3a4c3655889b293009ba9799c704b0cf6 100644 (file)
@@ -281,6 +281,7 @@ Client::Client(ceph::net::Messenger& messenger,
     auth_handler{auth_handler}
 {}
 
+Client::Client(Client&&) = default;
 Client::~Client() = default;
 
 seastar::future<> Client::start() {
index 4d2c353ea7fda40f19e034b351766148dd17780e..098f68c137675cedde27779a0db9b5a4ff679e4f 100644 (file)
@@ -75,6 +75,7 @@ class Client : public ceph::net::Dispatcher,
 
 public:
   Client(ceph::net::Messenger&, ceph::common::AuthHandler&);
+  Client(Client&&);
   ~Client();
   seastar::future<> start();
   seastar::future<> stop();