]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: pass unique_ptr<ObjectStore> to ctor of OSD
authorKefu Chai <kchai@redhat.com>
Thu, 27 May 2021 03:08:48 +0000 (11:08 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 27 May 2021 15:07:10 +0000 (23:07 +0800)
commitb04b2f4d2a2cae8f85a4db35216efe92c0b39484
treedc0dacbbeb6bdefa37141286ba05f31aed792771
parent2455c901bcda85bd7987760cb8764a89c9655f93
osd: pass unique_ptr<ObjectStore> to ctor of OSD

less error-prone, and it's simpler to manage the resource using RAII

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph_osd.cc
src/osd/OSD.cc
src/osd/OSD.h
src/test/osd/TestOSDScrub.cc