From 8aac809ad78ed4fedf913bcd53fb8ade90afa0ad Mon Sep 17 00:00:00 2001 From: groot Date: Sat, 23 Nov 2019 14:36:22 +0800 Subject: [PATCH] fix typo --- core/src/server/Config.h | 6 ++++-- core/unittest/server/test_config.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/server/Config.h b/core/src/server/Config.h index 4e4923ee..281a832d 100644 --- a/core/src/server/Config.h +++ b/core/src/server/Config.h @@ -172,9 +172,10 @@ class Config { CheckEngineConfigOmpThreadNum(const std::string& value); #ifdef MILVUS_GPU_VERSION - /* gpu resource config */ Status CheckEngineConfigGpuSearchThreshold(const std::string& value); + + /* gpu resource config */ Status CheckGpuResourceConfigEnable(const std::string& value); Status @@ -307,9 +308,10 @@ class Config { SetEngineConfigOmpThreadNum(const std::string& value); #ifdef MILVUS_GPU_VERSION - /* gpu resource config */ Status SetEngineConfigGpuSearchThreshold(const std::string& value); + + /* gpu resource config */ Status SetGpuResourceConfigEnable(const std::string& value); Status diff --git a/core/unittest/server/test_config.cpp b/core/unittest/server/test_config.cpp index 3a24c02a..791876ee 100644 --- a/core/unittest/server/test_config.cpp +++ b/core/unittest/server/test_config.cpp @@ -404,10 +404,10 @@ TEST_F(ConfigTest, SERVER_CONFIG_INVALID_TEST) { ASSERT_FALSE(s.ok()); #ifdef MILVUS_GPU_VERSION - /* gpu resource config */ s = config.SetEngineConfigGpuSearchThreshold("-1"); ASSERT_FALSE(s.ok()); + /* gpu resource config */ s = config.SetGpuResourceConfigEnable("ok"); ASSERT_FALSE(s.ok()); -- GitLab