| 87 | } |
| 88 | |
| 89 | void DaemonManagerClient::controlDaemonJob(const StorageID & storage_id, CnchBGThreadType job_type, CnchBGThreadAction action, String query_id) |
| 90 | { |
| 91 | brpc::Controller cntl; |
| 92 | Protos::ControlDaemonJobReq req; |
| 93 | Protos::ControlDaemonJobResp resp; |
| 94 | |
| 95 | if (!storage_id.empty()) |
| 96 | RPCHelpers::fillStorageID(storage_id, *req.mutable_storage_id()); |
| 97 | else |
| 98 | cntl.set_timeout_ms(360 * 1000); |
| 99 | req.set_job_type(job_type); |
| 100 | req.set_action(action); |
| 101 | if (!query_id.empty()) |
| 102 | req.set_query_id(std::move(query_id)); |
| 103 | |
| 104 | stub_ptr->ControlDaemonJob(&cntl, &req, &resp, nullptr); |
| 105 | |
| 106 | assertController(cntl); |
| 107 | RPCHelpers::checkResponse(resp); |
| 108 | } |
| 109 | |
| 110 | void DaemonManagerClient::forwardOptimizeQuery(const StorageID & storage_id, const String & partition_id, bool enable_try, bool mutations_sync, UInt64 timeout_ms) |
| 111 | { |
no test coverage detected