Commit 7a27e9d4 authored by groot's avatar groot
Browse files

modify log

parent 27f6166d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −3
Original line number Diff line number Diff line
@@ -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_);
@@ -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());
    }
+1 −3
Original line number Diff line number Diff line
@@ -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();
@@ -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());
    }
+1 −3
Original line number Diff line number Diff line
@@ -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
@@ -79,8 +79,6 @@ CreatePartitionRequest::OnExecute() {
        return Status(SERVER_UNEXPECTED_ERROR, ex.what());
    }

    rc.ElapseFromBegin("totally cost");

    return Status::OK();
}

+1 −3
Original line number Diff line number Diff line
@@ -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
@@ -89,8 +89,6 @@ CreateTableRequest::OnExecute() {
        return Status(SERVER_UNEXPECTED_ERROR, ex.what());
    }

    rc.ElapseFromBegin("totally cost");

    return Status::OK();
}

Loading