Loading core/src/db/DBImpl.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -695,7 +695,6 @@ DBImpl::MergeFiles(const std::string& table_id, const meta::DateT& date, const m auto file_schema = file; file_schema.file_type_ = meta::TableFileSchema::TO_DELETE; updated.push_back(file_schema); ENGINE_LOG_DEBUG << "Merging file " << file_schema.file_id_; index_size = index->Size(); if (index_size >= file_schema.index_file_size_) { Loading core/src/db/engine/ExecutionEngineImpl.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -472,6 +472,8 @@ ExecutionEngineImpl::Merge(const std::string& location) { auto status = index_->Add(file_index->Count(), file_index->GetRawVectors(), file_index->GetRawIds()); if (!status.ok()) { ENGINE_LOG_ERROR << "Failed to merge: " << location << " to: " << location_; } else { ENGINE_LOG_DEBUG << "Finish merge index file: " << location; } return status; } else { Loading core/src/server/grpc_impl/request/CmdRequest.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ #include "server/grpc_impl/request/CmdRequest.h" #include "scheduler/SchedInst.h" #include "utils/Log.h" #include "utils/TimeRecorder.h" #include <memory> Loading @@ -35,6 +37,9 @@ CmdRequest::Create(const std::string& cmd, std::string& result) { Status CmdRequest::OnExecute() { std::string hdr = "CmdRequest(cmd=" + cmd_ + ")"; TimeRecorder rc(hdr); if (cmd_ == "version") { result_ = MILVUS_VERSION; } else if (cmd_ == "tasktable") { Loading core/src/server/grpc_impl/request/CountTableRequest.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,8 @@ CountTableRequest::Create(const std::string& table_name, int64_t& row_count) { Status CountTableRequest::OnExecute() { try { TimeRecorder rc("CountTableRequest"); std::string hdr = "CountTableRequest(table=" + table_name_ + ")"; TimeRecorder rc(hdr); // step 1: check arguments auto status = ValidationUtil::ValidateTableName(table_name_); Loading core/src/server/grpc_impl/request/CreateIndexRequest.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,8 @@ CreateIndexRequest::Create(const ::milvus::grpc::IndexParam* index_param) { Status CreateIndexRequest::OnExecute() { try { TimeRecorder rc("CreateIndexRequest"); std::string hdr = "CreateIndexRequest(table=" + index_param_->table_name() + ")"; TimeRecorder rc(hdr); // step 1: check arguments std::string table_name_ = index_param_->table_name(); Loading Loading
core/src/db/DBImpl.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -695,7 +695,6 @@ DBImpl::MergeFiles(const std::string& table_id, const meta::DateT& date, const m auto file_schema = file; file_schema.file_type_ = meta::TableFileSchema::TO_DELETE; updated.push_back(file_schema); ENGINE_LOG_DEBUG << "Merging file " << file_schema.file_id_; index_size = index->Size(); if (index_size >= file_schema.index_file_size_) { Loading
core/src/db/engine/ExecutionEngineImpl.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -472,6 +472,8 @@ ExecutionEngineImpl::Merge(const std::string& location) { auto status = index_->Add(file_index->Count(), file_index->GetRawVectors(), file_index->GetRawIds()); if (!status.ok()) { ENGINE_LOG_ERROR << "Failed to merge: " << location << " to: " << location_; } else { ENGINE_LOG_DEBUG << "Finish merge index file: " << location; } return status; } else { Loading
core/src/server/grpc_impl/request/CmdRequest.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ #include "server/grpc_impl/request/CmdRequest.h" #include "scheduler/SchedInst.h" #include "utils/Log.h" #include "utils/TimeRecorder.h" #include <memory> Loading @@ -35,6 +37,9 @@ CmdRequest::Create(const std::string& cmd, std::string& result) { Status CmdRequest::OnExecute() { std::string hdr = "CmdRequest(cmd=" + cmd_ + ")"; TimeRecorder rc(hdr); if (cmd_ == "version") { result_ = MILVUS_VERSION; } else if (cmd_ == "tasktable") { Loading
core/src/server/grpc_impl/request/CountTableRequest.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,8 @@ CountTableRequest::Create(const std::string& table_name, int64_t& row_count) { Status CountTableRequest::OnExecute() { try { TimeRecorder rc("CountTableRequest"); std::string hdr = "CountTableRequest(table=" + table_name_ + ")"; TimeRecorder rc(hdr); // step 1: check arguments auto status = ValidationUtil::ValidateTableName(table_name_); Loading
core/src/server/grpc_impl/request/CreateIndexRequest.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,8 @@ CreateIndexRequest::Create(const ::milvus::grpc::IndexParam* index_param) { Status CreateIndexRequest::OnExecute() { try { TimeRecorder rc("CreateIndexRequest"); std::string hdr = "CreateIndexRequest(table=" + index_param_->table_name() + ")"; TimeRecorder rc(hdr); // step 1: check arguments std::string table_name_ = index_param_->table_name(); Loading