From: xie xingguo Date: Mon, 25 Jan 2016 04:03:40 +0000 (+0800) Subject: BlueFS: flush_wait log before update super X-Git-Tag: v10.0.4~135^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5088dfd34ab76d29e6039f942e102d742c45b0b9;p=ceph.git BlueFS: flush_wait log before update super Fixes: #14484 Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index e637ac7b736d..d8ecdec36fd5 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -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;