mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 23:45:28 +08:00
more log
This commit is contained in:
parent
bc2dba26a2
commit
844feab926
@ -706,7 +706,7 @@ DBImpl::MergeFiles(const std::string& table_id, const meta::DateT& date, const m
|
||||
// step 3: serialize to disk
|
||||
try {
|
||||
status = index->Serialize();
|
||||
if (status.ok()) {
|
||||
if (!status.ok()) {
|
||||
ENGINE_LOG_ERROR << status.message();
|
||||
}
|
||||
} catch (std::exception& ex) {
|
||||
|
||||
@ -169,7 +169,7 @@ XBuildIndexTask::Execute() {
|
||||
// step 5: save index file
|
||||
try {
|
||||
status = index->Serialize();
|
||||
if (status.ok()) {
|
||||
if (!status.ok()) {
|
||||
ENGINE_LOG_ERROR << status.message();
|
||||
}
|
||||
} catch (std::exception& ex) {
|
||||
|
||||
@ -45,7 +45,9 @@ InsertRequest::Create(const ::milvus::grpc::InsertParam* insert_param, ::milvus:
|
||||
Status
|
||||
InsertRequest::OnExecute() {
|
||||
try {
|
||||
TimeRecorder rc("InsertRequest");
|
||||
std::string hdr = "InsertRequest(table=" + insert_param_->table_name() +
|
||||
", n=" + std::to_string(insert_param_->row_record_array_size()) + ")";
|
||||
TimeRecorder rc(hdr);
|
||||
|
||||
// step 1: check arguments
|
||||
auto status = ValidationUtil::ValidateTableName(insert_param_->table_name());
|
||||
|
||||
@ -51,7 +51,9 @@ SearchRequest::OnExecute() {
|
||||
int64_t top_k = search_param_->topk();
|
||||
int64_t nprobe = search_param_->nprobe();
|
||||
|
||||
std::string hdr = "SearchRequest(k=" + std::to_string(top_k) + ", nprob=" + std::to_string(nprobe) + ")";
|
||||
std::string hdr = "SearchRequest(table=" + search_param_->table_name() +
|
||||
", nq=" + std::to_string(search_param_->query_record_array_size()) +
|
||||
", k=" + std::to_string(top_k) + ", nprob=" + std::to_string(nprobe) + ")";
|
||||
TimeRecorder rc(hdr);
|
||||
|
||||
// step 1: check table name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user