]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: dir->mark_new() should together with dir->mark_dirty() 39128/head
authorYan, Zheng <zyan@redhat.com>
Mon, 16 Nov 2020 14:44:00 +0000 (22:44 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 28 Jan 2021 13:11:46 +0000 (14:11 +0100)
commita4df06da414ad0d1fdd62847dae35e7e32a04495
treee1550ba2465c19f600d7cf36a69951963cff2774
parent9743ed991c7282b299a36c28d635ff251bdee338
mds: dir->mark_new() should together with dir->mark_dirty()

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
- the "mark_dirty" method requires an additional boilerplate argument in
  nautilus
src/mds/MDCache.cc