]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/mgr: reconnect in ms_handle_reset()
authorKefu Chai <kchai@redhat.com>
Tue, 10 Mar 2020 10:42:38 +0000 (18:42 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 10 Mar 2020 13:13:47 +0000 (21:13 +0800)
commit9318c18218b3ded450bc6307db9a59203910a540
treecb47726c9196a4b89384e2d793113f798d75693e
parent74001778ef978b669b4f7f6e1ed4bf3aaef0a9b6
crimson/mgr: reconnect in ms_handle_reset()

since `reconnect()` does not wait for `conn->close()` anymore, we
can actually call `reconnect()` right in `ms_handle_reset()`.

also, to avoid connecting mgr too frequently, connect the mgr with
specified interval (1 second by default).

send the MMgrOpen message in `ms_handle_connect()` to make it explicit
that we sends this message when the connection is established.

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