]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: use unique_ptr for managing life cycles 32007/head
authorKefu Chai <kchai@redhat.com>
Wed, 4 Dec 2019 15:44:05 +0000 (23:44 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 4 Dec 2019 15:51:04 +0000 (23:51 +0800)
commit6651faddbae116ec4fe0cfa503601b4da52940fd
tree91a10aebd30bfabd67c91ef00218a2afc563d3d8
parent95d0962c986b211999fa0183d9af97c7ccb692c2
osd: use unique_ptr for managing life cycles

instead of `new` and `delete` manually, use `unique_ptr<>` for managing
life cycles of member variables.

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