From f005dac2d9887308dff54730e75032ef5f5b91a3 Mon Sep 17 00:00:00 2001 From: hfrt456 <719565790@QQ.com> Date: Wed, 3 Jun 2020 13:48:06 -0700 Subject: [PATCH] fix IsDirectory function in env_hdfs.cc (#6917) Summary: fix IsDirectory function for hdfsEnv Pull Request resolved: https://github.com/facebook/rocksdb/pull/6917 Reviewed By: cheng-chang Differential Revision: D21865020 Pulled By: riversand963 fbshipit-source-id: ad69ed564d027b7bbdf4c693dd57cd02622fb3f8 --- env/env_hdfs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/env_hdfs.cc b/env/env_hdfs.cc index 81422ffa6..5561f8ced 100644 --- a/env/env_hdfs.cc +++ b/env/env_hdfs.cc @@ -613,7 +613,7 @@ Status HdfsEnv::IsDirectory(const std::string& path, bool* is_dir) { hdfsFileInfo* pFileInfo = hdfsGetPathInfo(fileSys_, path.c_str()); if (pFileInfo != nullptr) { if (is_dir != nullptr) { - *is_dir = (pFileInfo->mKind == tObjectKindDirectory); + *is_dir = (pFileInfo->mKind == kObjectKindDirectory); } hdfsFreeFileInfo(pFileInfo, 1); return Status::OK();