]> git.apps.os.sepia.ceph.com Git - ceph-ci.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:51:15 +0000 (09:51 +0100)
commitaac2046e88b55513ae90c90c3fec4eee1f1961e8
tree62d89718fd2ec3deb2d9f2574a4e2b87850c1940
parent6b2f69db4f192ae093d27494e82852db6c6514c8
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