| 3983 | } |
| 3984 | |
| 3985 | std::shared_ptr<::fedb::api::TaskInfo> TabletImpl::FindTask( |
| 3986 | uint64_t op_id, ::fedb::api::TaskType task_type) { |
| 3987 | auto iter = task_map_.find(op_id); |
| 3988 | if (iter == task_map_.end()) { |
| 3989 | return std::shared_ptr<::fedb::api::TaskInfo>(); |
| 3990 | } |
| 3991 | for (auto& task : iter->second) { |
| 3992 | if (task->op_id() == op_id && task->task_type() == task_type) { |
| 3993 | return task; |
| 3994 | } |
| 3995 | } |
| 3996 | return std::shared_ptr<::fedb::api::TaskInfo>(); |
| 3997 | } |
| 3998 | |
| 3999 | int TabletImpl::AddOPMultiTask( |
| 4000 | const ::fedb::api::TaskInfo& task_info, ::fedb::api::TaskType task_type, |
nothing calls this directly
no outgoing calls
no test coverage detected