diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 129ffb76abe..6571dbdf37e 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -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 who;