]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: unknown hash type of judgment modification 9510/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Tue, 21 Jun 2016 11:51:30 +0000 (19:51 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Tue, 21 Jun 2016 11:51:30 +0000 (19:51 +0800)
commit5d282a39eec3083d9d7d74597f16b32b82c4d6ee
tree2a5cc4f032ab48fe154b9dddac49b31bf2d37358
parentef92aba9edf1c1635a094df94be01047bca4574e
common: unknown hash type of judgment modification

ceph_str_hash() return -1 if set unknown hash type
but (unsiged)-1 = unsiged 4294967295
So we can't judge whether the 4294967295 is the normal value of hash, or the return value of the unknown hash type
use ceph_str_hash_valid() verify the hash type before generating the hash value

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/client/Inode.h
src/mds/CInode.cc