]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: do not send_log if conn is not active anymore 16576/head
authorKefu Chai <kchai@redhat.com>
Wed, 26 Jul 2017 05:54:58 +0000 (13:54 +0800)
committerSage Weil <sage@redhat.com>
Wed, 26 Jul 2017 11:53:40 +0000 (07:53 -0400)
commita16ca787a8cc73a365ee55634ba361b98c733807
tree287f18a1459808977fdbc936fab44466b9ef994d
parentd466bc6e66abba9b464b0b69687cf45c9dccf383
mon/MonClient: do not send_log if conn is not active anymore

the log message to be sent will be appended to waiting_for_session
instead. but we will send the logs anyway when the MonClient is
authorized with the new connection. so, avoid doing this as it's not
necessary.

also refactor the schedule_tick() call into a scope_guard, so it is
always called upon the return of the tick() method.

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