From: Haomai Wang Date: Mon, 4 Jan 2016 14:36:25 +0000 (+0800) Subject: BlueFS: fix comparison warning X-Git-Tag: v10.0.4~81^2~45 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fbdcb12cc98c8eb5714c4fdb2f3c62ad4778e5bb;p=ceph.git BlueFS: fix comparison warning Signed-off-by: Haomai Wang --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 5ac1e635e784..ab08b24986db 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -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;