File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -572,12 +572,11 @@ int MonClient::authenticate(double timeout)
572
572
if (!_opened ())
573
573
_reopen_session ();
574
574
575
- auto until = ceph::mono_clock::now ();
576
- until += ceph::make_timespan (timeout);
577
- if (timeout > 0.0 )
578
- ldout (cct, 10 ) << " authenticate will time out at " << until << dendl;
579
575
while (!active_con && authenticate_err >= 0 ) {
580
576
if (timeout > 0.0 ) {
577
+ auto until = ceph::mono_clock::now ();
578
+ until += ceph::make_timespan (timeout);
579
+ ldout (cct, 10 ) << " authenticate will time out at " << until << dendl;
581
580
auto r = auth_cond.wait_until (lock, until);
582
581
if (r == std::cv_status::timeout && !active_con) {
583
582
ldout (cct, 0 ) << " authenticate timed out after " << timeout << dendl;
You can’t perform that action at this time.
0 commit comments