]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
BlueFS: fix comparison warning
authorHaomai Wang <haomai@xsky.com>
Mon, 4 Jan 2016 14:36:25 +0000 (22:36 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 1 Feb 2016 14:00:43 +0000 (22:00 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/os/bluestore/BlueFS.cc

index 5ac1e635e78457107f024a2c1240febb8a317466..ab08b24986dbd8fc09c08d4b228039c32285c4c0 100644 (file)
@@ -43,7 +43,7 @@ int BlueFS::add_block_device(unsigned id, string path)
 {
   dout(10) << __func__ << " bdev " << id << " path " << path << dendl;
   assert(id == bdev.size());
-  BlockDevice *b = new BlockDevice(NULL, NULL); //aio_cb, this);
+  BlockDevice *b = BlockDevice::create(g_conf->bdev_backend_type, NULL, NULL); //aio_cb, this);
   int r = b->open(path);
   if (r < 0) {
     delete b;