Loading core/src/server/grpc_impl/request/CmdRequest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ CmdRequest::Create(const std::string& cmd, std::string& result) { Status CmdRequest::OnExecute() { std::string hdr = "CmdRequest(cmd=" + cmd_ + ")"; TimeRecorder rc(hdr); TimeRecorderAuto rc(hdr); if (cmd_ == "version") { result_ = MILVUS_VERSION; Loading core/src/server/grpc_impl/request/CountTableRequest.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ Status CountTableRequest::OnExecute() { try { std::string hdr = "CountTableRequest(table=" + table_name_ + ")"; TimeRecorder rc(hdr); TimeRecorderAuto rc(hdr); // step 1: check arguments auto status = ValidationUtil::ValidateTableName(table_name_); Loading @@ -60,8 +60,6 @@ CountTableRequest::OnExecute() { } row_count_ = static_cast<int64_t>(row_count); rc.ElapseFromBegin("total cost"); } catch (std::exception& ex) { return Status(SERVER_UNEXPECTED_ERROR, ex.what()); } Loading core/src/server/grpc_impl/request/CreateIndexRequest.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ Status CreateIndexRequest::OnExecute() { try { std::string hdr = "CreateIndexRequest(table=" + index_param_->table_name() + ")"; TimeRecorder rc(hdr); TimeRecorderAuto rc(hdr); // step 1: check arguments std::string table_name_ = index_param_->table_name(); Loading Loading @@ -83,8 +83,6 @@ CreateIndexRequest::OnExecute() { if (!status.ok()) { return status; } rc.ElapseFromBegin("totally cost"); } catch (std::exception& ex) { return Status(SERVER_UNEXPECTED_ERROR, ex.what()); } Loading core/src/server/grpc_impl/request/CreatePartitionRequest.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ CreatePartitionRequest::OnExecute() { std::string hdr = "CreatePartitionRequest(table=" + partition_param_->table_name() + ", partition_name=" + partition_param_->partition_name() + ", partition_tag=" + partition_param_->tag() + ")"; TimeRecorder rc(hdr); TimeRecorderAuto rc(hdr); try { // step 1: check arguments Loading Loading @@ -79,8 +79,6 @@ CreatePartitionRequest::OnExecute() { return Status(SERVER_UNEXPECTED_ERROR, ex.what()); } rc.ElapseFromBegin("totally cost"); return Status::OK(); } Loading core/src/server/grpc_impl/request/CreateTableRequest.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ Status CreateTableRequest::OnExecute() { std::string hdr = "CreateTableRequest(table=" + schema_->table_name() + ", dimension=" + std::to_string(schema_->dimension()) + ")"; TimeRecorder rc(hdr); TimeRecorderAuto rc(hdr); try { // step 1: check arguments Loading Loading @@ -89,8 +89,6 @@ CreateTableRequest::OnExecute() { return Status(SERVER_UNEXPECTED_ERROR, ex.what()); } rc.ElapseFromBegin("totally cost"); return Status::OK(); } Loading Loading
core/src/server/grpc_impl/request/CmdRequest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ CmdRequest::Create(const std::string& cmd, std::string& result) { Status CmdRequest::OnExecute() { std::string hdr = "CmdRequest(cmd=" + cmd_ + ")"; TimeRecorder rc(hdr); TimeRecorderAuto rc(hdr); if (cmd_ == "version") { result_ = MILVUS_VERSION; Loading
core/src/server/grpc_impl/request/CountTableRequest.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ Status CountTableRequest::OnExecute() { try { std::string hdr = "CountTableRequest(table=" + table_name_ + ")"; TimeRecorder rc(hdr); TimeRecorderAuto rc(hdr); // step 1: check arguments auto status = ValidationUtil::ValidateTableName(table_name_); Loading @@ -60,8 +60,6 @@ CountTableRequest::OnExecute() { } row_count_ = static_cast<int64_t>(row_count); rc.ElapseFromBegin("total cost"); } catch (std::exception& ex) { return Status(SERVER_UNEXPECTED_ERROR, ex.what()); } Loading
core/src/server/grpc_impl/request/CreateIndexRequest.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ Status CreateIndexRequest::OnExecute() { try { std::string hdr = "CreateIndexRequest(table=" + index_param_->table_name() + ")"; TimeRecorder rc(hdr); TimeRecorderAuto rc(hdr); // step 1: check arguments std::string table_name_ = index_param_->table_name(); Loading Loading @@ -83,8 +83,6 @@ CreateIndexRequest::OnExecute() { if (!status.ok()) { return status; } rc.ElapseFromBegin("totally cost"); } catch (std::exception& ex) { return Status(SERVER_UNEXPECTED_ERROR, ex.what()); } Loading
core/src/server/grpc_impl/request/CreatePartitionRequest.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ CreatePartitionRequest::OnExecute() { std::string hdr = "CreatePartitionRequest(table=" + partition_param_->table_name() + ", partition_name=" + partition_param_->partition_name() + ", partition_tag=" + partition_param_->tag() + ")"; TimeRecorder rc(hdr); TimeRecorderAuto rc(hdr); try { // step 1: check arguments Loading Loading @@ -79,8 +79,6 @@ CreatePartitionRequest::OnExecute() { return Status(SERVER_UNEXPECTED_ERROR, ex.what()); } rc.ElapseFromBegin("totally cost"); return Status::OK(); } Loading
core/src/server/grpc_impl/request/CreateTableRequest.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ Status CreateTableRequest::OnExecute() { std::string hdr = "CreateTableRequest(table=" + schema_->table_name() + ", dimension=" + std::to_string(schema_->dimension()) + ")"; TimeRecorder rc(hdr); TimeRecorderAuto rc(hdr); try { // step 1: check arguments Loading Loading @@ -89,8 +89,6 @@ CreateTableRequest::OnExecute() { return Status(SERVER_UNEXPECTED_ERROR, ex.what()); } rc.ElapseFromBegin("totally cost"); return Status::OK(); } Loading