mirror of https://github.com/milvus-io/milvus.git
merge branch-0.4.0
Former-commit-id: 8ab13046a40eb49349070ce4779dcae206647e02pull/191/head
parent
0a8edff148
commit
b8a447990d
|
@ -310,9 +310,9 @@ ClientTest::Test(const std::string& address, const std::string& port) {
|
|||
}
|
||||
|
||||
{//wait unit build index finish
|
||||
// std::cout << "Wait until build all index done" << std::endl;
|
||||
// Status stat = conn->BuildIndex(TABLE_NAME);
|
||||
// std::cout << "BuildIndex function call status: " << stat.ToString() << std::endl;
|
||||
std::cout << "Wait until build all index done" << std::endl;
|
||||
Status stat = conn->BuildIndex(TABLE_NAME);
|
||||
std::cout << "BuildIndex function call status: " << stat.ToString() << std::endl;
|
||||
}
|
||||
|
||||
{//search vectors after build index finish
|
||||
|
|
|
@ -190,9 +190,7 @@ GrpcClient::Ping(std::string &result, const std::string& cmd) {
|
|||
::milvus::grpc::ServerStatus response;
|
||||
::milvus::grpc::Command command;
|
||||
command.set_cmd(cmd);
|
||||
std::cout << "in ping \n";
|
||||
::grpc::Status status = stub_->Ping(&context, command, &response);
|
||||
std::cout << "finish ping stub \n";
|
||||
|
||||
result = response.info();
|
||||
if (!status.ok()) {
|
||||
|
|
|
@ -107,7 +107,6 @@ RequestHandler::GetTableRowCount(::grpc::ServerContext* context, const ::milvus:
|
|||
|
||||
::grpc::Status
|
||||
RequestHandler::ShowTables(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::grpc::ServerWriter< ::milvus::grpc::TableName>* writer) {
|
||||
std::cout << "in handler\n";
|
||||
BaseTaskPtr task_ptr = ShowTablesTask::Create(*writer);
|
||||
::milvus::grpc::Status grpc_status;
|
||||
RequestScheduler::ExecTask(task_ptr, &grpc_status);
|
||||
|
@ -121,7 +120,6 @@ RequestHandler::ShowTables(::grpc::ServerContext* context, const ::milvus::grpc:
|
|||
|
||||
::grpc::Status
|
||||
RequestHandler::Ping(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response) {
|
||||
std::cout << "in handler\n";
|
||||
std::string result;
|
||||
BaseTaskPtr task_ptr = PingTask::Create(request->cmd(), result);
|
||||
::milvus::grpc::Status grpc_status;
|
||||
|
|
Loading…
Reference in New Issue