From: Kefu Chai Date: Thu, 11 Apr 2019 13:03:54 +0000 (+0800) Subject: crimson: add move ctor for CephContext and mon::Client X-Git-Tag: v15.1.0~2957^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae25608081925e6f40af4b74fbe866dccd317710;p=ceph.git crimson: add move ctor for CephContext and mon::Client Signed-off-by: Kefu Chai --- diff --git a/src/common/ceph_context.h b/src/common/ceph_context.h index 6e6832d4f0b4..7203452fb170 100644 --- a/src/common/ceph_context.h +++ b/src/common/ceph_context.h @@ -65,6 +65,7 @@ public: int = 0) : CephContext{} {} + CephContext(CephContext&&) = default; ~CephContext(); uint32_t get_module_type() const; diff --git a/src/crimson/mon/MonClient.cc b/src/crimson/mon/MonClient.cc index 0a6e1371b236..7ed927b3a4c3 100644 --- a/src/crimson/mon/MonClient.cc +++ b/src/crimson/mon/MonClient.cc @@ -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() { diff --git a/src/crimson/mon/MonClient.h b/src/crimson/mon/MonClient.h index 4d2c353ea7fd..098f68c13767 100644 --- a/src/crimson/mon/MonClient.h +++ b/src/crimson/mon/MonClient.h @@ -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();