]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: use unique_ptr<> to manage lifecycle of Monitor::paxos
authorKefu Chai <kchai@redhat.com>
Sat, 28 Nov 2020 09:09:12 +0000 (17:09 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 Dec 2020 11:35:47 +0000 (19:35 +0800)
commitb6977f75dbacc93754a83c7197db413ba719aff3
tree9d80dbf7c219d2f3de251b37b3198ebea7c3c395
parent72f27fcdc837ee2679847fe41f8678b59a613394
mon: use unique_ptr<> to manage lifecycle of Monitor::paxos

it is less error-prone, and has better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/OSDMonitor.cc