]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerNeha Ojha <nojha@redhat.com>
Thu, 29 Apr 2021 17:40:50 +0000 (17:40 +0000)
commitcddf16504e7bd446ee4bb1aa46d11ee5e22e3bc1
treeefc55974877647aac21508bd9266bfb7c07164f3
parent717ce59b76c659aaef8c5aec1355c0ac5cef7234
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>
(cherry picked from commit 164ff62aa5ac205783410c42161881837694f9c9)
src/mon/Monitor.cc