]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson: refactor asok command
authorKefu Chai <kchai@redhat.com>
Sun, 16 Feb 2020 02:03:36 +0000 (10:03 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 16 Feb 2020 15:59:30 +0000 (23:59 +0800)
commit7d4abc9f54e55d7ad9fee230abd8fe688e592a08
tree2584b4c70009eac28f1d427c71190e3db9c4c7c9
parentb0dbe317f3ad9bc727633496bfce53cf1079a9aa
crimson: refactor asok command

* do not define another iterator type, use `map::const_iterator`
  directly
* do not register hooks/commands with server block, register them
  one by one, much simpler this way.
* encapsulate the hook metadata in `AdminSocketHook`, so each
  `AdminSocketHook` instance is self-contained in the sense that
  we don't need to use an extra type for keeping track of them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/admin/admin_socket.cc
src/crimson/admin/admin_socket.h
src/crimson/admin/osd_admin.cc
src/crimson/admin/osd_admin.h
src/crimson/osd/osd.cc
src/crimson/osd/osd.h