MCPcopy Create free account
hub / github.com/ByConity/ByConity / controlDaemonJob

Method controlDaemonJob

src/DaemonManager/DaemonManagerClient.cpp:89–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void 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
110void DaemonManagerClient::forwardOptimizeQuery(const StorageID & storage_id, const String & partition_id, bool enable_try, bool mutations_sync, UInt64 timeout_ms)
111{

Callers 7

alterMethod · 0.80
resetOffsetImplMethod · 0.80
alterMethod · 0.80
applySettingsChangesMethod · 0.80
controlConsumeMethod · 0.80

Calls 5

fillStorageIDFunction · 0.85
assertControllerFunction · 0.85
checkResponseFunction · 0.85
ControlDaemonJobMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected