]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluefs/BlueFS: cleanup code. 21994/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 15 May 2018 13:15:05 +0000 (21:15 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 15 May 2018 13:15:05 +0000 (21:15 +0800)
In constructor of FileWriter, it already filled nullptr.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/bluestore/BlueFS.cc

index 567262c2fbd197c495b1fe8e3587e01571300214..5b4e025cb2c05d78aad0a3dbf50b8b45dcb7cd87 100644 (file)
@@ -2165,8 +2165,6 @@ BlueFS::FileWriter *BlueFS::_create_writer(FileRef f)
   for (unsigned i = 0; i < MAX_BDEV; ++i) {
     if (bdev[i]) {
       w->iocv[i] = new IOContext(cct, NULL);
-    } else {
-      w->iocv[i] = NULL;
     }
   }
   return w;