]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/mon: resend mon command when session established
authorKefu Chai <kchai@redhat.com>
Tue, 2 Mar 2021 09:52:36 +0000 (17:52 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 2 Mar 2021 11:04:28 +0000 (19:04 +0800)
commit44e45cfc76229e4d240700a3429084971f23365e
treea60146c0b26d37ff25316cb45b03c4a4d7698ad4
parentd30e4c2318d81357b6b1e6755d820259d4069d32
crimson/mon: resend mon command when session established

this behavior matches that of `MonClient::_resend_mon_commands()`. so
far the only user which sends mon command in crimson is
`OSD::_add_me_to_crush()`, but there is still (rare) chance that the connected
monitor cannot be reached when we send the command to it, in that case,
we should retry when the connection is re-established.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mon/MonClient.cc
src/crimson/mon/MonClient.h