]> 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:56:35 +0000 (20:56 +0200)
commita39fe4928501514ca50fb6fdb805907cdfd7ac57
tree21e62425dc016b5fd32b2a756ad8204ae132b2f4
parent6dbc5488185ba5289fb59fb4663e2e01b3e5f247
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