]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MonClient: fix auth timeout vs error race
authorSage Weil <sage@redhat.com>
Mon, 5 Mar 2018 18:59:32 +0000 (12:59 -0600)
committerSage Weil <sage@redhat.com>
Tue, 6 Mar 2018 20:44:50 +0000 (14:44 -0600)
commit148db39cf9216cbbcca7faea3efed1f2200e61d4
tree1ae610c571190f8fc5add8e29896d68a2b70ba75
parentb349fbe2e473cf90415d0f482180a00424071e2d
mon/MonClient: fix auth timeout vs error race

It's possible that we successfully set active_con *and* time out the
cond WaitUntil.  Only set the error if we don't have a connection; if we
set it *and* time out then let's call it success.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc