]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
BlueFS: remove redundant intermediate buffer pad
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 21 Jan 2016 08:57:22 +0000 (16:57 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 3 Feb 2016 01:59:17 +0000 (09:59 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueFS.cc

index 1ad0559195de8f17354b38ca956e1e444577ff60..a1ce746fd40cb85f319306deb4126ac06c867532 100644 (file)
@@ -893,8 +893,6 @@ void BlueFS::_pad_bl(bufferlist& bl)
     bufferptr z(super.block_size - partial);
     dout(10) << __func__ << " padding with " << z.length() << " zeros" << dendl;
     z.zero();
-    bufferlist zbl;
-    zbl.append(z);
     bl.append(z);
   }
 }