]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/mon: only finish auth when auth is completed
authorKefu Chai <kchai@redhat.com>
Tue, 22 Sep 2020 06:13:52 +0000 (14:13 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 22 Sep 2020 09:07:47 +0000 (17:07 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mon/MonClient.cc

index 2a51ffdb313d7ca043fefcfb92974ccd517a1d82..4c5bdda4b6ebf306314c23f21d94adad195d529a 100644 (file)
@@ -975,7 +975,7 @@ seastar::future<> Client::reopen_session(int rank)
           });
       }
     }).then([peer, this](auto result) {
-      if (result != Connection::auth_result_t::canceled) {
+      if (result == Connection::auth_result_t::success) {
         _finish_auth(peer);
       }
       logger().debug("reopen_session mon connection attempts complete");