]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: dir->mark_new() should together with dir->mark_dirty() 38352/head
authorYan, Zheng <zyan@redhat.com>
Mon, 16 Nov 2020 14:44:00 +0000 (22:44 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 16 Jan 2021 12:17:10 +0000 (13:17 +0100)
commit02ca2d84b9a90887208fb9226abdc1bef701a4aa
treedcce3b81795c6eb0c7a89b5fbaa411f6ab50d445
parent3b1861acb8137d863184795ccadbd5d0cb026674
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
- in octopus, CDir::mark_dirty() takes a version_t argument in addition to the
  LogSegment* pointer
src/mds/MDCache.cc