summaryrefslogtreecommitdiffstats
path: root/src/client/Inode.h
diff options
context:
space:
mode:
authorYuri Weinstein <yuri.weinstein@gmail.com>2016-07-15 00:15:18 +0200
committerGitHub <noreply@github.com>2016-07-15 00:15:18 +0200
commitf748b959668f0220116ac9a5bb4a502c42712e4f (patch)
tree5a681672f9b9d3ef88c5be3ed3f958f58bc03c37 /src/client/Inode.h
parentMerge pull request #9729 from stiopaa1/common_workqueue_addMove (diff)
parentcommon: unknown hash type of judgment modification (diff)
downloadceph-f748b959668f0220116ac9a5bb4a502c42712e4f.tar.xz
ceph-f748b959668f0220116ac9a5bb4a502c42712e4f.zip
Merge pull request #9510 from renhwztetecs/renhw-wip-common
common: unknown hash type of judgment modification Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/client/Inode.h')
-rw-r--r--src/client/Inode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/Inode.h b/src/client/Inode.h
index dc9b91de65e..aa96afd3e97 100644
--- a/src/client/Inode.h
+++ b/src/client/Inode.h
@@ -139,6 +139,7 @@ struct Inode {
int which = 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());
}