From 44c69d4f69175287627268642619bb13ce762087 Mon Sep 17 00:00:00 2001 From: HeYuchen <377710264@qq.com> Date: Fri, 28 May 2021 14:56:45 +0800 Subject: [PATCH] Update src/common/replication_common.cpp Co-authored-by: Yingchun Lai <405403881@qq.com> --- src/common/replication_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/replication_common.cpp b/src/common/replication_common.cpp index 77e45c33d2..830fb9b856 100644 --- a/src/common/replication_common.cpp +++ b/src/common/replication_common.cpp @@ -556,7 +556,7 @@ replication_options::get_data_dir_and_tag(const std::string &config_dirs_str, replication_options::get_data_dirs_in_black_list(const std::string &fname, /*out*/ std::vector &dirs) { - if (fname.empty() || (!fname.empty() && !utils::filesystem::file_exists(fname))) { + if (fname.empty() || !utils::filesystem::file_exists(fname)) { ddebug_f("data_dirs_black_list_file[{}] not found, ignore it", fname); return; }