mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +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,7 +2033,8 @@ void MDCache::resolve_start()
|
||||
// it owns, so that anything beyond its bounds get left as
|
||||
// unknown.
|
||||
CDir *rootdir = root->get_dirfrag(frag_t());
|
||||
adjust_subtree_auth(rootdir, CDIR_AUTH_UNKNOWN);
|
||||
if (rootdir)
|
||||
adjust_subtree_auth(rootdir, CDIR_AUTH_UNKNOWN);
|
||||
}
|
||||
|
||||
set<int> who;
|
||||
|
Loading…
Reference in New Issue
Block a user