From: Sage Weil Date: Fri, 3 Jun 2016 12:54:06 +0000 (-0400) Subject: unittest_bluefs: fix more X-Git-Tag: v11.0.0~329 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2a3c0e2098d44ea160b0a01de4ce394098928d4a;p=ceph.git unittest_bluefs: fix more - wait for aio to finish - shut down bdev, which stops the aio completion thread - *then* deallocate the IOContexts Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 5dab8fa03866..d8ed6e1d94bc 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -30,7 +30,6 @@ BlueFS::~BlueFS() for (auto p : ioc) { if (p) p->aio_wait(); - delete p; } for (auto p : bdev) { if (p) { @@ -38,6 +37,9 @@ BlueFS::~BlueFS() delete p; } } + for (auto p : ioc) { + delete p; + } } void BlueFS::_init_logger()