summaryrefslogtreecommitdiffstats
path: root/src/mds/CInode.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds/CInode.cc')
-rw-r--r--src/mds/CInode.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc
index ed75d587abc..326fe35995b 100644
--- a/src/mds/CInode.cc
+++ b/src/mds/CInode.cc
@@ -493,6 +493,7 @@ __u32 InodeStoreBase::hash_dentry_name(const string &dn)
int which = inode.dir_layout.dl_dir_hash;
if (!which)
which = CEPH_STR_HASH_LINUX;
+ assert(ceph_str_hash_valid(which));
return ceph_str_hash(which, dn.data(), dn.length());
}