merge branch-0.4.0

Former-commit-id: 8ab13046a40eb49349070ce4779dcae206647e02
pull/191/head
kun yu 2019-08-05 17:41:28 +08:00
parent 0a8edff148
commit b8a447990d
3 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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()) {

View File

@ -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;