]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration/HttpClient: drop SslHttpSession::m_ssl_enabled
authorIlya Dryomov <idryomov@gmail.com>
Sat, 7 Dec 2024 12:52:41 +0000 (13:52 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Dec 2024 08:49:46 +0000 (09:49 +0100)
commit5fe61d40283da24ca3f5f9f724887bfc8c09bf47
treed4ef5bfa4868c71a8eeccc75660167a3debfafd3
parent364594cef2aee26e46f7e9f27c72e36cd43378db
librbd/migration/HttpClient: drop SslHttpSession::m_ssl_enabled

The remaining callers of disconnect() call it only when m_ssl_enabled
is set to true (i.e. after the handshake is completed):

- shut_down(), in STATE_READY
- maybe_finalize_reset(), very shortly after transitioning out of
  STATE_READY as part of performing a reset
- advance_state(), on a transition to STATE_READY that is intercepted
  by a previously delayed shut down

m_ssl_enabled isn't used outside of disconnect() and on top of that
is never cleared.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 8566224e9406abca42925f8045077141c2724bed)
src/librbd/migration/HttpClient.cc