From: xie xingguo Date: Thu, 23 Jun 2016 06:21:53 +0000 (+0800) Subject: os/bluestore: shutdown allocator of bluefs more gracefully X-Git-Tag: v11.0.0~68^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e35ac192e0fd3896c157b7de16b3061a3aa5ae6;p=ceph.git os/bluestore: shutdown allocator of bluefs more gracefully The new BitAllocator requires we call shutdown() explicitly, thus we shall fix it here before we apply to the new BitAllocator. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 08b3ad1682db..07d5e408a18d 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -318,7 +318,10 @@ void BlueFS::_stop_alloc() { dout(20) << __func__ << dendl; for (auto p : alloc) { - delete p; + if (p != nullptr) { + p->shutdown(); + delete p; + } } alloc.clear(); }