From ae25608081925e6f40af4b74fbe866dccd317710 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 11 Apr 2019 21:03:54 +0800 Subject: [PATCH] crimson: add move ctor for CephContext and mon::Client Signed-off-by: Kefu Chai --- src/common/ceph_context.h | 1 + src/crimson/mon/MonClient.cc | 1 + src/crimson/mon/MonClient.h | 1 + 3 files changed, 3 insertions(+) diff --git a/src/common/ceph_context.h b/src/common/ceph_context.h index 6e6832d4f0b..7203452fb17 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 0a6e1371b23..7ed927b3a4c 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 4d2c353ea7f..098f68c1376 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(); -- 2.47.3