]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/admin: use tell_result_t(unique_ptr<Formatter>) 36960/head
authorKefu Chai <kchai@redhat.com>
Thu, 3 Sep 2020 04:12:07 +0000 (12:12 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 3 Sep 2020 04:15:26 +0000 (12:15 +0800)
commit3772e957d68a7b21cf05b95a63fcd2ccb93b5346
tree17b3ecab8b5d8bcece259ec999fd23acee2c3744
parent968df0cae65509a7334514302cb61bb4d1752e60
crimson/admin: use tell_result_t(unique_ptr<Formatter>)

to address the comment of

> Taking the `Formatter` by pointer was a bit confusing in the matter of
> lifetime control.

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