diff options
-rw-r--r-- | src/mds/MDCache.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 0c279b66a91..f2114565573 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -6625,9 +6625,10 @@ void MDCache::handle_cache_expire(MCacheExpire *m) } else { // which dirfrag for this dentry? CDir *dir = diri->get_dirfrag(diri->pick_dirfrag(p->first.first)); + assert(dir); assert(dir->is_auth()); dn = dir->lookup(p->first.first, p->first.second); - } + } if (!dn) dout(0) << " missing dentry for " << p->first.first << " snap " << p->first.second << " in " << *dir << dendl; |