mirror of
https://github.com/ceph/ceph
synced 2025-01-01 16:42:29 +00:00
mds: fix null pointer deref in resolve on mostly-empty mds
We may not have any dirfrags during resolve if the mds crashed while stopping.
This commit is contained in:
parent
d844ddee5d
commit
0ee0a8d465
@ -2033,6 +2033,7 @@ void MDCache::resolve_start()
|
||||
// it owns, so that anything beyond its bounds get left as
|
||||
// unknown.
|
||||
CDir *rootdir = root->get_dirfrag(frag_t());
|
||||
if (rootdir)
|
||||
adjust_subtree_auth(rootdir, CDIR_AUTH_UNKNOWN);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user