From: Sage Weil Date: Wed, 14 Sep 2016 23:00:51 +0000 (-0400) Subject: os/bluestore/BlueFS: do not dirty compacting log ino 0 X-Git-Tag: v11.0.1~231^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7c1a78481cd1751ad85c8e64da618d627db2e86b;p=ceph.git os/bluestore/BlueFS: do not dirty compacting log ino 0 Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index f4c0f1e0fdc..aeb71776fd1 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -1418,10 +1418,10 @@ int BlueFS::_flush_range(FileWriter *h, uint64_t offset, uint64_t length) } if (h->file->fnode.size < offset + length) { h->file->fnode.size = offset + length; - if (h->file->fnode.ino != 1) { - // we do not need to dirty the log file when the file size - // changes because replay is smart enough to discover it on its - // own. + if (h->file->fnode.ino > 1) { + // we do not need to dirty the log file (or it's compacting + // replacement) when the file size changes because replay is + // smart enough to discover it on its own. must_dirty = true; } }