Prioritizes the loading of metadata for one or more catalog objects. Currently only used for loading tables/views because they are the only type of object that is loaded lazily.
| 526 | // used for loading tables/views because they are the only type of object that is loaded |
| 527 | // lazily. |
| 528 | void PrioritizeLoad(TPrioritizeLoadResponse& resp, const TPrioritizeLoadRequest& req) |
| 529 | override { |
| 530 | VLOG_RPC << "PrioritizeLoad(): request=" << ThriftDebugString(req); |
| 531 | Status status = AcceptRequest(req.protocol_version); |
| 532 | if (status.ok()) { |
| 533 | status = catalog_server_->catalog()->PrioritizeLoad(req); |
| 534 | } |
| 535 | if (!status.ok()) LOG(ERROR) << status.GetDetail(); |
| 536 | TStatus thrift_status; |
| 537 | StatusToThrift(status, &thrift_status); |
| 538 | resp.__set_status(thrift_status); |
| 539 | VLOG_RPC << "PrioritizeLoad(): response=" << ThriftDebugString(resp); |
| 540 | } |
| 541 | |
| 542 | void UpdateTableUsage(TUpdateTableUsageResponse& resp, |
| 543 | const TUpdateTableUsageRequest& req) override { |
nothing calls this directly
no test coverage detected