]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: remove "force_new" from ms_get_authorizer() 26054/head
authorKefu Chai <kchai@redhat.com>
Mon, 21 Jan 2019 11:26:10 +0000 (19:26 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 21 Jan 2019 11:30:54 +0000 (19:30 +0800)
it was removed in e62f45d1, so update crimson-osd accordingly

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/chained_dispatchers.cc
src/crimson/osd/chained_dispatchers.h

index 9f1b0f771baf090c9221478df942ea65def06798..da4aa269ee330bfe49de165a9121880e1d28591f 100644 (file)
@@ -39,16 +39,14 @@ ChainedDispatchers::ms_handle_remote_reset(ceph::net::ConnectionRef conn) {
 }
 
 seastar::future<std::unique_ptr<AuthAuthorizer>>
-ChainedDispatchers::ms_get_authorizer(peer_type_t peer_type, bool force_new)
+ChainedDispatchers::ms_get_authorizer(peer_type_t peer_type)
 {
   // since dispatcher returns a nullptr if it does not have the authorizer,
   // let's use the chain-of-responsibility pattern here.
   struct Params {
     peer_type_t peer_type;
-    bool force_new;
     std::deque<Dispatcher*>::iterator first, last;
-  } params = {peer_type, force_new,
-              dispatchers.begin(), dispatchers.end()};
+  } params = {peer_type, dispatchers.begin(), dispatchers.end()};
   return seastar::do_with(Params{params}, [this] (Params& params) {
     using result_t = std::unique_ptr<AuthAuthorizer>;
     return seastar::repeat_until_value([&] () {
@@ -57,8 +55,7 @@ ChainedDispatchers::ms_get_authorizer(peer_type_t peer_type, bool force_new)
         // just give up
         return seastar::make_ready_future<std::optional<result_t>>(result_t{});
       } else {
-        return (*first)->ms_get_authorizer(params.peer_type,
-                                           params.force_new)
+        return (*first)->ms_get_authorizer(params.peer_type)
           .then([&] (auto&& auth)-> std::optional<result_t> {
           if (auth) {
             // hooray!
index a287e500e49534e850f0b3e678751056db1ceb7b..c30408361ba9be1e47ff4a32eb5cfa032c530974 100644 (file)
@@ -28,5 +28,5 @@ public:
   seastar::future<> ms_handle_reset(ceph::net::ConnectionRef conn) override;
   seastar::future<> ms_handle_remote_reset(ceph::net::ConnectionRef conn) override;
   seastar::future<std::unique_ptr<AuthAuthorizer>>
-  ms_get_authorizer(peer_type_t peer_type, bool force_new) override;
+  ms_get_authorizer(peer_type_t peer_type) override;
 };