Signed-off-by: Sage Weil <sage@redhat.com>
}
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;
}
}