mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
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:
parent
679ddf5d11
commit
7757f3ea3c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user