Executes a TResetMetadataRequest and returns details on the result of the operation.
| 422 | |
| 423 | // Executes a TResetMetadataRequest and returns details on the result of the operation. |
| 424 | void ResetMetadata(TResetMetadataResponse& resp, const TResetMetadataRequest& req) |
| 425 | override { |
| 426 | VLOG_RPC << "ResetMetadata(): request=" << ThriftDebugString(req); |
| 427 | DebugActionNoFail(FLAGS_debug_actions, "RESET_METADATA_DELAY"); |
| 428 | Status status = AcceptRequest(req.protocol_version); |
| 429 | if (status.ok()) { |
| 430 | status = catalog_server_->catalog()->ResetMetadata(req, &resp); |
| 431 | } |
| 432 | if (!status.ok()) LOG(ERROR) << status.GetDetail(); |
| 433 | TStatus thrift_status; |
| 434 | StatusToThrift(status, &thrift_status); |
| 435 | resp.result.__set_status(thrift_status); |
| 436 | VLOG_RPC << "ResetMetadata(): response=" << ThriftDebugString(resp); |
| 437 | } |
| 438 | |
| 439 | // Executes a TUpdateCatalogRequest and returns details on the result of the |
| 440 | // operation. |
no test coverage detected