]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore/BlueFS: remove the duplicate bufferlist.rebuild().
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 27 Apr 2016 16:31:03 +0000 (00:31 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Sat, 7 May 2016 22:41:21 +0000 (06:41 +0800)
In the later BlockDevice::aio_write(), it will rebuild again if
bufferlist need rebuild.

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

index 5a24f13bb16ce0986e752262801ed62c41768d5e..f1f607e35689ad0f42993b7f662538a73419b6ac 100644 (file)
@@ -378,7 +378,6 @@ int BlueFS::_write_super()
   ::encode(crc, bl);
   assert(bl.length() <= get_super_length());
   bl.append_zero(get_super_length() - bl.length());
-  bl.rebuild();
 
   IOContext ioc(NULL);
   bdev[BDEV_DB]->aio_write(get_super_offset(), bl, &ioc, false);