Skip to content

Commit f9df08c

Browse files
authored
Merge pull request ceph#51424 from NitzanMordhai/wip-nitzan-monclient-reconnect-finish-auth-with-error
mon/MonClient: before complete auth with error, reopen session Reviewed-by: Greg Farnum <[email protected]>
2 parents b2ec2af + f8dad00 commit f9df08c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mon/MonClient.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,11 @@ void MonClient::_finish_auth(int auth_err)
709709
if (!auth_err && active_con) {
710710
ceph_assert(auth);
711711
_check_auth_tickets();
712+
} else if (auth_err == -EAGAIN && !active_con) {
713+
ldout(cct,10) << __func__
714+
<< " auth returned EAGAIN, reopening the session to try again"
715+
<< dendl;
716+
_reopen_session();
712717
}
713718
auth_cond.notify_all();
714719
}

0 commit comments

Comments
 (0)