Otherwise, the 'new' flag won't get cleared after dir is committed.
The leftover 'new' flag will confuse later journal and dir commit.
Fixes: https://tracker.ceph.com/issues/48249
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit
be4710a1496c46f3307966ddfa416e932d878603)
Conflicts:
src/mds/MDCache.cc
- in octopus, CDir::mark_dirty() takes a version_t argument in addition to the
LogSegment* pointer
for (const auto& dir : info.resultfrags) {
dout(10) << " storing result frag " << *dir << dendl;
+ dir->mark_dirty(dir->pre_dirty(), mdr->ls);
dir->mark_new(mdr->ls);
// freeze and store them too