mds/scrub: write root inode backtrace at creation

Write root inode backtrace as soon as it is created;
Unwritten backtrace always caused scrub to fail for root inode.

Fixes: https://tracker.ceph.com/issues/50976
Signed-off-by: Milind Changire <mchangir@redhat.com>
This commit is contained in:
Milind Changire 2021-06-02 15:12:09 +05:30
parent 679ddf5d11
commit 7757f3ea3c

View File

@ -441,6 +441,8 @@ void MDCache::create_empty_hierarchy(MDSGather *gather)
rootdir->commit(0, gather->new_sub());
root->store(gather->new_sub());
root->mark_dirty_parent(mds->mdlog->get_current_segment(), true);
root->store_backtrace(gather->new_sub());
}
void MDCache::create_mydir_hierarchy(MDSGather *gather)