Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
6b81dd55
M
milvus
项目概览
milvus
/
milvus
12 个月 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6b81dd55
编写于
3月 07, 2020
作者:
Y
yudong.cai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#1536 move Config.cpp to config directory
Signed-off-by:
N
yudong.cai
<
yudong.cai@zilliz.com
>
上级
a08b51c2
变更
47
显示空白变更内容
内联
并排
Showing
47 changed file
with
52 addition
and
65 deletion
+52
-65
core/src/cache/CpuCacheMgr.cpp
core/src/cache/CpuCacheMgr.cpp
+1
-1
core/src/cache/GpuCacheMgr.cpp
core/src/cache/GpuCacheMgr.cpp
+1
-1
core/src/config/Config.cpp
core/src/config/Config.cpp
+1
-1
core/src/config/Config.h
core/src/config/Config.h
+0
-0
core/src/config/handler/CacheConfigHandler.cpp
core/src/config/handler/CacheConfigHandler.cpp
+1
-2
core/src/config/handler/ConfigHandler.h
core/src/config/handler/ConfigHandler.h
+1
-1
core/src/config/handler/GpuConfigHandler.h
core/src/config/handler/GpuConfigHandler.h
+1
-1
core/src/config/handler/GpuSearchConfigHandler.cpp
core/src/config/handler/GpuSearchConfigHandler.cpp
+2
-2
core/src/db/Utils.cpp
core/src/db/Utils.cpp
+1
-1
core/src/db/engine/ExecutionEngineImpl.cpp
core/src/db/engine/ExecutionEngineImpl.cpp
+1
-1
core/src/db/insert/MemManagerImpl.h
core/src/db/insert/MemManagerImpl.h
+1
-1
core/src/db/wal/WalManager.cpp
core/src/db/wal/WalManager.cpp
+1
-1
core/src/index/knowhere/knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h
...knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h
+1
-1
core/src/metrics/Metrics.cpp
core/src/metrics/Metrics.cpp
+1
-1
core/src/metrics/prometheus/PrometheusMetrics.cpp
core/src/metrics/prometheus/PrometheusMetrics.cpp
+1
-1
core/src/scheduler/SchedInst.cpp
core/src/scheduler/SchedInst.cpp
+1
-1
core/src/scheduler/SchedInst.h
core/src/scheduler/SchedInst.h
+0
-1
core/src/scheduler/action/PushTaskToNeighbour.cpp
core/src/scheduler/action/PushTaskToNeighbour.cpp
+3
-4
core/src/scheduler/optimizer/FaissFlatPass.cpp
core/src/scheduler/optimizer/FaissFlatPass.cpp
+1
-1
core/src/scheduler/optimizer/FaissIVFFlatPass.cpp
core/src/scheduler/optimizer/FaissIVFFlatPass.cpp
+1
-1
core/src/scheduler/optimizer/FaissIVFPQPass.cpp
core/src/scheduler/optimizer/FaissIVFPQPass.cpp
+1
-1
core/src/scheduler/optimizer/FaissIVFSQ8HPass.cpp
core/src/scheduler/optimizer/FaissIVFSQ8HPass.cpp
+1
-1
core/src/scheduler/optimizer/FaissIVFSQ8Pass.cpp
core/src/scheduler/optimizer/FaissIVFSQ8Pass.cpp
+1
-1
core/src/server/DBWrapper.cpp
core/src/server/DBWrapper.cpp
+1
-1
core/src/server/Server.cpp
core/src/server/Server.cpp
+1
-1
core/src/server/delivery/request/CmdRequest.cpp
core/src/server/delivery/request/CmdRequest.cpp
+1
-0
core/src/server/delivery/request/CreateIndexRequest.cpp
core/src/server/delivery/request/CreateIndexRequest.cpp
+1
-1
core/src/server/delivery/request/SearchByIDRequest.cpp
core/src/server/delivery/request/SearchByIDRequest.cpp
+1
-1
core/src/server/grpc_impl/GrpcRequestHandler.cpp
core/src/server/grpc_impl/GrpcRequestHandler.cpp
+0
-1
core/src/server/grpc_impl/GrpcServer.cpp
core/src/server/grpc_impl/GrpcServer.cpp
+3
-10
core/src/server/web_impl/WebServer.cpp
core/src/server/web_impl/WebServer.cpp
+2
-5
core/src/server/web_impl/handler/WebRequestHandler.cpp
core/src/server/web_impl/handler/WebRequestHandler.cpp
+1
-1
core/src/storage/s3/S3ClientWrapper.cpp
core/src/storage/s3/S3ClientWrapper.cpp
+1
-1
core/src/utils/CommonUtil.cpp
core/src/utils/CommonUtil.cpp
+1
-1
core/src/wrapper/ConfAdapter.cpp
core/src/wrapper/ConfAdapter.cpp
+2
-2
core/src/wrapper/KnowhereResource.cpp
core/src/wrapper/KnowhereResource.cpp
+1
-1
core/src/wrapper/VecIndex.cpp
core/src/wrapper/VecIndex.cpp
+2
-2
core/unittest/CMakeLists.txt
core/unittest/CMakeLists.txt
+1
-1
core/unittest/db/test_db.cpp
core/unittest/db/test_db.cpp
+1
-1
core/unittest/metrics/test_metrics.cpp
core/unittest/metrics/test_metrics.cpp
+1
-1
core/unittest/metrics/test_prometheus.cpp
core/unittest/metrics/test_prometheus.cpp
+1
-1
core/unittest/server/test_config.cpp
core/unittest/server/test_config.cpp
+1
-1
core/unittest/server/test_rpc.cpp
core/unittest/server/test_rpc.cpp
+1
-1
core/unittest/server/test_web.cpp
core/unittest/server/test_web.cpp
+1
-1
core/unittest/storage/test_s3_client.cpp
core/unittest/storage/test_s3_client.cpp
+1
-1
core/unittest/storage/utils.cpp
core/unittest/storage/utils.cpp
+1
-1
core/unittest/wrapper/test_knowhere.cpp
core/unittest/wrapper/test_knowhere.cpp
+1
-1
未找到文件。
core/src/cache/CpuCacheMgr.cpp
浏览文件 @
6b81dd55
...
...
@@ -10,7 +10,7 @@
// or implied. See the License for the specific language governing permissions and limitations under the License.
#include "cache/CpuCacheMgr.h"
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "utils/Log.h"
#include <fiu-local.h>
...
...
core/src/cache/GpuCacheMgr.cpp
浏览文件 @
6b81dd55
...
...
@@ -10,7 +10,7 @@
// or implied. See the License for the specific language governing permissions and limitations under the License.
#include "cache/GpuCacheMgr.h"
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "utils/Log.h"
#include <fiu-local.h>
...
...
core/src/
server
/Config.cpp
→
core/src/
config
/Config.cpp
浏览文件 @
6b81dd55
...
...
@@ -25,8 +25,8 @@
#include <unordered_set>
#include <vector>
#include "config/Config.h"
#include "config/YamlConfigMgr.h"
#include "server/Config.h"
#include "server/DBWrapper.h"
#include "thirdparty/nlohmann/json.hpp"
#include "utils/CommonUtil.h"
...
...
core/src/
server
/Config.h
→
core/src/
config
/Config.h
浏览文件 @
6b81dd55
文件已移动
core/src/config/handler/CacheConfigHandler.cpp
浏览文件 @
6b81dd55
...
...
@@ -10,8 +10,7 @@
// or implied. See the License for the specific language governing permissions and limitations under the License.
#include "config/handler/CacheConfigHandler.h"
#include "server/Config.h"
#include "config/Config.h"
namespace
milvus
{
namespace
server
{
...
...
core/src/config/handler/ConfigHandler.h
浏览文件 @
6b81dd55
...
...
@@ -13,7 +13,7 @@
#include <string>
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "utils/Log.h"
namespace
milvus
{
...
...
core/src/config/handler/GpuConfigHandler.h
浏览文件 @
6b81dd55
...
...
@@ -15,8 +15,8 @@
#include <limits>
#include <string>
#include "config/Config.h"
#include "config/handler/ConfigHandler.h"
#include "server/Config.h"
namespace
milvus
{
namespace
server
{
...
...
core/src/config/handler/GpuSearchConfigHandler.cpp
浏览文件 @
6b81dd55
...
...
@@ -9,12 +9,12 @@
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
#ifdef MILVUS_GPU_VERSION
#include "config/handler/GpuSearchConfigHandler.h"
#include <string>
#include <vector>
#include "server/Config.h"
#include "config/Config.h"
#include "config/handler/GpuSearchConfigHandler.h"
namespace
milvus
{
namespace
server
{
...
...
core/src/db/Utils.cpp
浏览文件 @
6b81dd55
...
...
@@ -18,7 +18,7 @@
#include <regex>
#include <vector>
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "storage/s3/S3ClientWrapper.h"
#include "utils/CommonUtil.h"
#include "utils/Log.h"
...
...
core/src/db/engine/ExecutionEngineImpl.cpp
浏览文件 @
6b81dd55
...
...
@@ -20,11 +20,11 @@
#include "cache/CpuCacheMgr.h"
#include "cache/GpuCacheMgr.h"
#include "config/Config.h"
#include "db/Utils.h"
#include "knowhere/common/Config.h"
#include "metrics/Metrics.h"
#include "scheduler/Utils.h"
#include "server/Config.h"
#include "utils/CommonUtil.h"
#include "utils/Exception.h"
#include "utils/Log.h"
...
...
core/src/db/insert/MemManagerImpl.h
浏览文件 @
6b81dd55
...
...
@@ -19,11 +19,11 @@
#include <string>
#include <vector>
#include "config/Config.h"
#include "config/handler/CacheConfigHandler.h"
#include "db/insert/MemManager.h"
#include "db/insert/MemTable.h"
#include "db/meta/Meta.h"
#include "server/Config.h"
#include "utils/Status.h"
namespace
milvus
{
...
...
core/src/db/wal/WalManager.cpp
浏览文件 @
6b81dd55
...
...
@@ -16,7 +16,7 @@
#include <algorithm>
#include <memory>
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "utils/CommonUtil.h"
#include "utils/Exception.h"
#include "utils/Log.h"
...
...
core/src/index/knowhere/knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h
浏览文件 @
6b81dd55
...
...
@@ -18,7 +18,7 @@
#include <faiss/gpu/StandardGpuResources.h>
#include "
src/
utils/BlockingQueue.h"
#include "utils/BlockingQueue.h"
namespace
knowhere
{
...
...
core/src/metrics/Metrics.cpp
浏览文件 @
6b81dd55
...
...
@@ -10,7 +10,7 @@
// or implied. See the License for the specific language governing permissions and limitations under the License.
#include "metrics/Metrics.h"
#include "
server
/Config.h"
#include "
config
/Config.h"
#ifdef MILVUS_WITH_PROMETHEUS
#include "metrics/prometheus/PrometheusMetrics.h"
#endif
...
...
core/src/metrics/prometheus/PrometheusMetrics.cpp
浏览文件 @
6b81dd55
...
...
@@ -11,8 +11,8 @@
#include "metrics/prometheus/PrometheusMetrics.h"
#include "cache/GpuCacheMgr.h"
#include "config/Config.h"
#include "metrics/SystemInfo.h"
#include "server/Config.h"
#include "utils/Log.h"
#include <string>
...
...
core/src/scheduler/SchedInst.cpp
浏览文件 @
6b81dd55
...
...
@@ -12,7 +12,7 @@
#include "scheduler/SchedInst.h"
#include "ResourceFactory.h"
#include "Utils.h"
#include "
server
/Config.h"
#include "
config
/Config.h"
#include <fiu-local.h>
#include <set>
...
...
core/src/scheduler/SchedInst.h
浏览文件 @
6b81dd55
...
...
@@ -24,7 +24,6 @@
#include "optimizer/FaissIVFSQ8Pass.h"
#include "optimizer/FallbackPass.h"
#include "optimizer/Optimizer.h"
#include "server/Config.h"
#include <memory>
#include <mutex>
...
...
core/src/scheduler/action/PushTaskToNeighbour.cpp
浏览文件 @
6b81dd55
...
...
@@ -11,11 +11,10 @@
#include <list>
#include <random>
#include "../Algorithm.h"
#include "Action.h"
#include "cache/GpuCacheMgr.h"
#include "scheduler/Algorithm.h"
#include "scheduler/action/Action.h"
#include "scheduler/tasklabel/SpecResLabel.h"
#include "src/cache/GpuCacheMgr.h"
#include "src/server/Config.h"
namespace
milvus
{
namespace
scheduler
{
...
...
core/src/scheduler/optimizer/FaissFlatPass.cpp
浏览文件 @
6b81dd55
...
...
@@ -11,11 +11,11 @@
#ifdef MILVUS_GPU_VERSION
#include "scheduler/optimizer/FaissFlatPass.h"
#include "cache/GpuCacheMgr.h"
#include "config/Config.h"
#include "scheduler/SchedInst.h"
#include "scheduler/Utils.h"
#include "scheduler/task/SearchTask.h"
#include "scheduler/tasklabel/SpecResLabel.h"
#include "server/Config.h"
#include "utils/Log.h"
#include <fiu-local.h>
...
...
core/src/scheduler/optimizer/FaissIVFFlatPass.cpp
浏览文件 @
6b81dd55
...
...
@@ -11,11 +11,11 @@
#ifdef MILVUS_GPU_VERSION
#include "scheduler/optimizer/FaissIVFFlatPass.h"
#include "cache/GpuCacheMgr.h"
#include "config/Config.h"
#include "scheduler/SchedInst.h"
#include "scheduler/Utils.h"
#include "scheduler/task/SearchTask.h"
#include "scheduler/tasklabel/SpecResLabel.h"
#include "server/Config.h"
#include "utils/Log.h"
namespace
milvus
{
...
...
core/src/scheduler/optimizer/FaissIVFPQPass.cpp
浏览文件 @
6b81dd55
...
...
@@ -11,11 +11,11 @@
#ifdef MILVUS_GPU_VERSION
#include "scheduler/optimizer/FaissIVFPQPass.h"
#include "cache/GpuCacheMgr.h"
#include "config/Config.h"
#include "scheduler/SchedInst.h"
#include "scheduler/Utils.h"
#include "scheduler/task/SearchTask.h"
#include "scheduler/tasklabel/SpecResLabel.h"
#include "server/Config.h"
#include "utils/Log.h"
#include <fiu-local.h>
...
...
core/src/scheduler/optimizer/FaissIVFSQ8HPass.cpp
浏览文件 @
6b81dd55
...
...
@@ -11,11 +11,11 @@
#ifdef MILVUS_GPU_VERSION
#include "scheduler/optimizer/FaissIVFSQ8HPass.h"
#include "cache/GpuCacheMgr.h"
#include "config/Config.h"
#include "scheduler/SchedInst.h"
#include "scheduler/Utils.h"
#include "scheduler/task/SearchTask.h"
#include "scheduler/tasklabel/SpecResLabel.h"
#include "server/Config.h"
#include "utils/Log.h"
namespace
milvus
{
...
...
core/src/scheduler/optimizer/FaissIVFSQ8Pass.cpp
浏览文件 @
6b81dd55
...
...
@@ -11,11 +11,11 @@
#ifdef MILVUS_GPU_VERSION
#include "scheduler/optimizer/FaissIVFSQ8Pass.h"
#include "cache/GpuCacheMgr.h"
#include "config/Config.h"
#include "scheduler/SchedInst.h"
#include "scheduler/Utils.h"
#include "scheduler/task/SearchTask.h"
#include "scheduler/tasklabel/SpecResLabel.h"
#include "server/Config.h"
#include "utils/Log.h"
namespace
milvus
{
...
...
core/src/server/DBWrapper.cpp
浏览文件 @
6b81dd55
...
...
@@ -15,8 +15,8 @@
#include <string>
#include <vector>
#include "config/Config.h"
#include "db/DBFactory.h"
#include "server/Config.h"
#include "server/DBWrapper.h"
#include "utils/CommonUtil.h"
#include "utils/Log.h"
...
...
core/src/server/Server.cpp
浏览文件 @
6b81dd55
...
...
@@ -15,9 +15,9 @@
#include <string.h>
#include <unistd.h>
#include "config/Config.h"
#include "metrics/Metrics.h"
#include "scheduler/SchedInst.h"
#include "server/Config.h"
#include "server/DBWrapper.h"
#include "server/grpc_impl/GrpcServer.h"
#include "server/web_impl/WebServer.h"
...
...
core/src/server/delivery/request/CmdRequest.cpp
浏览文件 @
6b81dd55
...
...
@@ -10,6 +10,7 @@
// or implied. See the License for the specific language governing permissions and limitations under the License.
#include "server/delivery/request/CmdRequest.h"
#include "config/Config.h"
#include "metrics/SystemInfo.h"
#include "scheduler/SchedInst.h"
#include "utils/Log.h"
...
...
core/src/server/delivery/request/CreateIndexRequest.cpp
浏览文件 @
6b81dd55
...
...
@@ -10,7 +10,7 @@
// or implied. See the License for the specific language governing permissions and limitations under the License.
#include "server/delivery/request/CreateIndexRequest.h"
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "server/DBWrapper.h"
#include "utils/Log.h"
#include "utils/TimeRecorder.h"
...
...
core/src/server/delivery/request/SearchByIDRequest.cpp
浏览文件 @
6b81dd55
...
...
@@ -19,7 +19,7 @@
#include <memory>
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "server/DBWrapper.h"
#include "utils/CommonUtil.h"
#include "utils/Log.h"
...
...
core/src/server/grpc_impl/GrpcRequestHandler.cpp
浏览文件 @
6b81dd55
...
...
@@ -16,7 +16,6 @@
#include <unordered_map>
#include <vector>
#include "server/Config.h"
#include "tracing/TextMapCarrier.h"
#include "tracing/TracerUtil.h"
#include "utils/Log.h"
...
...
core/src/server/grpc_impl/GrpcServer.cpp
浏览文件 @
6b81dd55
...
...
@@ -31,8 +31,8 @@
#include <vector>
#include "GrpcRequestHandler.h"
#include "config/Config.h"
#include "grpc/gen-milvus/milvus.grpc.pb.h"
#include "server/Config.h"
#include "server/DBWrapper.h"
#include "server/grpc_impl/interceptor/SpanInterceptor.h"
#include "utils/Log.h"
...
...
@@ -75,16 +75,9 @@ Status
GrpcServer
::
StartService
()
{
Config
&
config
=
Config
::
GetInstance
();
std
::
string
address
,
port
;
Status
s
;
s
=
config
.
GetServerConfigAddress
(
address
);
if
(
!
s
.
ok
())
{
return
s
;
}
s
=
config
.
GetServerConfigPort
(
port
);
if
(
!
s
.
ok
())
{
return
s
;
}
CONFIG_CHECK
(
config
.
GetServerConfigAddress
(
address
));
CONFIG_CHECK
(
config
.
GetServerConfigPort
(
port
));
std
::
string
server_address
(
address
+
":"
+
port
);
...
...
core/src/server/web_impl/WebServer.cpp
浏览文件 @
6b81dd55
...
...
@@ -10,14 +10,12 @@
// or implied. See the License for the specific language governing permissions and limitations under the License.
#include <chrono>
#include <oatpp/network/server/Server.hpp>
#include "config/Config.h"
#include "server/web_impl/WebServer.h"
#include "server/web_impl/controller/WebController.hpp"
#include "server/Config.h"
namespace
milvus
{
namespace
server
{
namespace
web
{
...
...
@@ -45,9 +43,8 @@ WebServer::StartService() {
Config
&
config
=
Config
::
GetInstance
();
std
::
string
port
;
Status
status
;
status
=
config
.
GetServerConfigWebPort
(
port
);
CONFIG_CHECK
(
config
.
GetServerConfigWebPort
(
port
)
);
{
AppComponent
components
=
AppComponent
(
std
::
stoi
(
port
));
...
...
core/src/server/web_impl/handler/WebRequestHandler.cpp
浏览文件 @
6b81dd55
...
...
@@ -17,8 +17,8 @@
#include <string>
#include <vector>
#include "config/Config.h"
#include "metrics/SystemInfo.h"
#include "server/Config.h"
#include "server/delivery/request/BaseRequest.h"
#include "server/web_impl/Constants.h"
#include "server/web_impl/Types.h"
...
...
core/src/storage/s3/S3ClientWrapper.cpp
浏览文件 @
6b81dd55
...
...
@@ -22,7 +22,7 @@
#include <memory>
#include <utility>
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "storage/s3/S3ClientMock.h"
#include "storage/s3/S3ClientWrapper.h"
#include "utils/Error.h"
...
...
core/src/utils/CommonUtil.cpp
浏览文件 @
6b81dd55
...
...
@@ -12,7 +12,7 @@
#include "utils/CommonUtil.h"
#include "cache/CpuCacheMgr.h"
#include "cache/GpuCacheMgr.h"
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "utils/Log.h"
#include <dirent.h>
...
...
core/src/wrapper/ConfAdapter.cpp
浏览文件 @
6b81dd55
...
...
@@ -8,18 +8,18 @@
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
#include "wrapper/ConfAdapter.h"
#include <fiu-local.h>
#include <cmath>
#include <memory>
#include <string>
#include <vector>
#include "WrapperException.h"
#include "config/Config.h"
#include "knowhere/index/vector_index/helpers/IndexParameter.h"
#include "server/Config.h"
#include "utils/Log.h"
namespace
milvus
{
...
...
core/src/wrapper/KnowhereResource.cpp
浏览文件 @
6b81dd55
...
...
@@ -14,9 +14,9 @@
#include "knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h"
#endif
#include "config/Config.h"
#include "faiss/FaissHook.h"
#include "scheduler/Utils.h"
#include "server/Config.h"
#include "utils/Log.h"
#include <fiu-local.h>
...
...
core/src/wrapper/VecIndex.cpp
浏览文件 @
6b81dd55
...
...
@@ -11,7 +11,7 @@
#include "wrapper/VecIndex.h"
#include "
VecImpl
.h"
#include "
config/Config
.h"
#include "knowhere/common/Exception.h"
#include "knowhere/index/vector_index/IndexBinaryIDMAP.h"
#include "knowhere/index/vector_index/IndexBinaryIVF.h"
...
...
@@ -22,7 +22,6 @@
#include "knowhere/index/vector_index/IndexIVFSQ.h"
#include "knowhere/index/vector_index/IndexNSG.h"
#include "knowhere/index/vector_index/IndexSPTAG.h"
#include "server/Config.h"
#include "storage/file/FileIOReader.h"
#include "storage/file/FileIOWriter.h"
#include "storage/s3/S3IOReader.h"
...
...
@@ -31,6 +30,7 @@
#include "utils/Log.h"
#include "utils/TimeRecorder.h"
#include "wrapper/BinVecImpl.h"
#include "wrapper/VecImpl.h"
#ifdef MILVUS_GPU_VERSION
#include <cuda.h>
...
...
core/unittest/CMakeLists.txt
浏览文件 @
6b81dd55
...
...
@@ -117,7 +117,7 @@ set(entry_file
${
CMAKE_CURRENT_SOURCE_DIR
}
/main.cpp
)
set
(
helper_files
${
MILVUS_ENGINE_SRC
}
/
server
/Config.cpp
${
MILVUS_ENGINE_SRC
}
/
config
/Config.cpp
${
MILVUS_ENGINE_SRC
}
/utils/CommonUtil.cpp
${
MILVUS_ENGINE_SRC
}
/utils/TimeRecorder.cpp
${
MILVUS_ENGINE_SRC
}
/utils/Status.cpp
...
...
core/unittest/db/test_db.cpp
浏览文件 @
6b81dd55
...
...
@@ -18,6 +18,7 @@
#include <thread>
#include "cache/CpuCacheMgr.h"
#include "config/Config.h"
#include "db/Constants.h"
#include "db/DB.h"
#include "db/DBFactory.h"
...
...
@@ -25,7 +26,6 @@
#include "db/IDGenerator.h"
#include "db/meta/MetaConsts.h"
#include "db/utils.h"
#include "server/Config.h"
#include "utils/CommonUtil.h"
namespace
{
...
...
core/unittest/metrics/test_metrics.cpp
浏览文件 @
6b81dd55
...
...
@@ -21,7 +21,7 @@
#define private public
#include "cache/CpuCacheMgr.h"
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "metrics/utils.h"
#include "db/DB.h"
#include "db/meta/SqliteMetaImpl.h"
...
...
core/unittest/metrics/test_prometheus.cpp
浏览文件 @
6b81dd55
...
...
@@ -9,7 +9,7 @@
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "metrics/prometheus/PrometheusMetrics.h"
#include <gtest/gtest.h>
...
...
core/unittest/server/test_config.cpp
浏览文件 @
6b81dd55
...
...
@@ -17,8 +17,8 @@
#include <gtest/gtest.h>
#include <cmath>
#include "config/Config.h"
#include "config/YamlConfigMgr.h"
#include "server/Config.h"
#include "server/utils.h"
#include "utils/CommonUtil.h"
#include "utils/StringHelpFunctions.h"
...
...
core/unittest/server/test_rpc.cpp
浏览文件 @
6b81dd55
...
...
@@ -15,6 +15,7 @@
#include <boost/filesystem.hpp>
#include <thread>
#include "config/Config.h"
#include "server/Server.h"
#include "server/grpc_impl/GrpcRequestHandler.h"
#include "server/delivery/RequestScheduler.h"
...
...
@@ -26,7 +27,6 @@
#include "grpc/gen-status/status.pb.h"
#include "scheduler/ResourceFactory.h"
#include "scheduler/SchedInst.h"
#include "server/Config.h"
#include "server/DBWrapper.h"
#include "utils/CommonUtil.h"
#include "server/grpc_impl/GrpcServer.h"
...
...
core/unittest/server/test_web.cpp
浏览文件 @
6b81dd55
...
...
@@ -21,9 +21,9 @@
#include <oatpp/web/client/ApiClient.hpp>
#include <oatpp/web/client/HttpRequestExecutor.hpp>
#include "config/Config.h"
#include "scheduler/ResourceFactory.h"
#include "scheduler/SchedInst.h"
#include "server/Config.h"
#include "server/DBWrapper.h"
#include "server/delivery/RequestHandler.h"
#include "server/delivery/RequestScheduler.h"
...
...
core/unittest/storage/test_s3_client.cpp
浏览文件 @
6b81dd55
...
...
@@ -16,8 +16,8 @@
#include <fiu-local.h>
#include <fiu-control.h>
#include "config/Config.h"
#include "easyloggingpp/easylogging++.h"
#include "server/Config.h"
#include "storage/s3/S3ClientWrapper.h"
#include "storage/s3/S3IOReader.h"
#include "storage/s3/S3IOWriter.h"
...
...
core/unittest/storage/utils.cpp
浏览文件 @
6b81dd55
...
...
@@ -12,7 +12,7 @@
#include <fstream>
#include <string>
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "storage/utils.h"
#include "utils/CommonUtil.h"
...
...
core/unittest/wrapper/test_knowhere.cpp
浏览文件 @
6b81dd55
...
...
@@ -9,7 +9,7 @@
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
#include "
server
/Config.h"
#include "
config
/Config.h"
#include "wrapper/KnowhereResource.h"
#include "wrapper/utils.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录