Unify the type of path_hash to size_t (#2324)

The type of path hash should be `size_t`(i.e. `uint32_t`),
but the current code mixes `int64_t`, ` int32_t` and `size_t`
This commit is contained in:
LingBin
2019-11-28 04:48:52 -06:00
committed by ZHAO Chun
parent e7b05f7eb3
commit 324f1b8f51
10 changed files with 58 additions and 63 deletions

View File

@ -21,8 +21,8 @@
namespace doris {
std::size_t hash_of_path(const std::string& identifier, const std::string& path) {
std::size_t hash = std::hash<std::string>()(identifier);
size_t hash_of_path(const std::string& identifier, const std::string& path) {
size_t hash = std::hash<std::string>()(identifier);
std::vector<std::string> path_parts = strings::Split(path, "/", strings::SkipWhitespace());
for (auto& part : path_parts) {
boost::hash_combine<std::string>(hash, part);