]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore/BlueFS: do not dirty compacting log ino 0
authorSage Weil <sage@redhat.com>
Wed, 14 Sep 2016 23:00:51 +0000 (19:00 -0400)
committerSage Weil <sage@redhat.com>
Wed, 14 Sep 2016 23:04:24 +0000 (19:04 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueFS.cc

index f4c0f1e0fdc57708795b1c49465297539351af91..aeb71776fd129920f1551baca90790fb674b74af 100644 (file)
@@ -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;
     }
   }