]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
BlueFS: flush_wait log before update super
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 25 Jan 2016 04:03:40 +0000 (12:03 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 25 Jan 2016 11:01:25 +0000 (19:01 +0800)
Fixes: #14484
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueFS.cc

index e637ac7b736da6df6b2e1b28c400ad1e14f5eb8a..d8ecdec36fd55b837b4fd6ef4e7dc4eac7787fe5 100644 (file)
@@ -872,6 +872,7 @@ void BlueFS::_compact_log()
   log_writer->append(bl);
   int r = _flush(log_writer, true);
   assert(r == 0);
+  _flush_wait(log_writer);
 
   dout(10) << __func__ << " writing super" << dendl;
   super.log_fnode = log_file->fnode;