]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration/HttpClient: don't shut down socket in resolve_host()
authorIlya Dryomov <idryomov@gmail.com>
Fri, 6 Dec 2024 13:42:55 +0000 (14:42 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Dec 2024 08:49:38 +0000 (09:49 +0100)
commit718efa26955b852c5f1a9eb784c4c4ec088179bd
tree3c2331408777b128d16d863ae9c5e1703bfbf362
parent1feeafd19b57036d174ded9c72d43ef74efc8f70
librbd/migration/HttpClient: don't shut down socket in resolve_host()

resolve_host() is called from init() and issue() when transitioning out
of STATE_UNINITIALIZED and from advance_state() right after the call to
shutdown_socket().  In all three cases the socket should get closed, so
drop the redundant call and place asserts in connect() implementations
instead.

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