]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/Monitor: early return if routed request is not found
authorKefu Chai <kchai@redhat.com>
Thu, 11 Mar 2021 09:09:57 +0000 (17:09 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 19 Mar 2021 16:04:32 +0000 (00:04 +0800)
commit164ff62aa5ac205783410c42161881837694f9c9
treebde75101a38995d2d440428a0ce608fafe4d9c99
parent4bcf9c3422e6287622a0807c931bb8122bb378b1
mon/Monitor: early return if routed request is not found

* early return if routed request is not found in routed_requests.
  reduce the indent level, for better readability.
* do not look up the request twice. for better performance.
* use unique_ptr<> for holding the request, for better readability

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