]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ciommon/admin_socket: extract find_matched_hook() out
authorKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 08:35:29 +0000 (16:35 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 23 Sep 2020 11:28:54 +0000 (13:28 +0200)
commitc350b133b55bf4a0ecd32f77a17cfd5ea5357fdc
tree898cd5ac6d208e2186765f161f637690993ff520
parent0d7baa7913276f22ad2cbd8273df8c572134ced3
ciommon/admin_socket: extract find_matched_hook() out

this function is complicated and isolated enough to be a separated
method.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 0fc4ed1d9109abc489a65340b92908107337fafd)

Conflicts:
src/common/admin_socket.cc
- octopus has a "while" block (instead of "if") under the comment
  // make sure one of the registered commands with this prefix validates
  but this is being removed
src/common/admin_socket.cc
src/common/admin_socket.h