MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / SetTaskStatus

Method SetTaskStatus

src/tablet/tablet_impl.cc:3931–3939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3929}
3930
3931void TabletImpl::SetTaskStatus(
3932 std::shared_ptr<::fedb::api::TaskInfo>& task_ptr,
3933 ::fedb::api::TaskStatus status) {
3934 if (!task_ptr) {
3935 return;
3936 }
3937 std::lock_guard<std::mutex> lock(mu_);
3938 task_ptr->set_status(status);
3939}
3940
3941int TabletImpl::GetTaskStatus(std::shared_ptr<::fedb::api::TaskInfo>& task_ptr,
3942 ::fedb::api::TaskStatus* status) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected