]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: claim active_con's auth explicitly
authorIlya Dryomov <idryomov@gmail.com>
Sat, 6 Mar 2021 10:15:40 +0000 (11:15 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 12 Apr 2021 18:50:53 +0000 (20:50 +0200)
commit645e89d94004f5c77275be7f7cdd1e5a3d868cdb
treee7aee37ce6dd502396015ceed67f89e6b8d696aa
parentda55a3bcd22c1830890769a6b042297e524b4d35
mon/MonClient: claim active_con's auth explicitly

Eliminate confusion by moving auth from active_con into MonClient
instead of swapping them.

The existing MonClient::auth can be destroyed right away -- I don't
see why active_con would need it or a reason to delay its destruction
(which is what stashing in active_con effectively does).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit eec24e4d119c57c7eb5119dc0083616a61b33b89)
src/mon/MonClient.cc