]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: remove duplicated reset of buf 9890/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 23 Jun 2016 12:10:50 +0000 (20:10 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 23 Jun 2016 12:10:50 +0000 (20:10 +0800)
buf->reset() will do the clear up effectively.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 05eabf65d8797ab95722864dbfe7e1e47ef6012d..8b13695e6a5009eeaddd03e5ba4c42367d5c6008 100644 (file)
@@ -3120,7 +3120,6 @@ void BlueStore::_sync()
 
 int BlueStore::statfs(struct store_statfs_t *buf)
 {
-  memset(buf, 0, sizeof(*buf));
   uint64_t bluefs_len = 0;
   for (interval_set<uint64_t>::iterator p = bluefs_extents.begin();
       p != bluefs_extents.end(); p++)