]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: make sure path_fd is correctly closed during destruction
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 2 Jul 2016 09:00:45 +0000 (17:00 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 5 Jul 2016 02:10:53 +0000 (10:10 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 8c2d5b12f49b73f4fdc94ab8d9da8064592028da..130571a6329460f4b41eff322b2fbf7430780f9c 100644 (file)
@@ -1388,6 +1388,7 @@ BlueStore::~BlueStore()
   assert(db == NULL);
   assert(bluefs == NULL);
   assert(fsid_fd < 0);
+  assert(path_fd < 0);
   for (auto i : cache_shards) {
     delete i;
   }