| 7092 | } |
| 7093 | |
| 7094 | std::shared_ptr<Task> NameServerImpl::CreateAddTableInfoTask(const std::string& name, const std::string& db, |
| 7095 | uint32_t pid, const std::string& endpoint, |
| 7096 | uint64_t op_index, ::fedb::api::OPType op_type) { |
| 7097 | std::shared_ptr<Task> task = std::make_shared<Task>(endpoint, std::make_shared<::fedb::api::TaskInfo>()); |
| 7098 | task->task_info_->set_op_id(op_index); |
| 7099 | task->task_info_->set_op_type(op_type); |
| 7100 | task->task_info_->set_task_type(::fedb::api::TaskType::kAddTableInfo); |
| 7101 | task->task_info_->set_status(::fedb::api::TaskStatus::kInited); |
| 7102 | task->fun_ = boost::bind(&NameServerImpl::AddTableInfo, this, name, db, endpoint, pid, task->task_info_); |
| 7103 | return task; |
| 7104 | } |
| 7105 | |
| 7106 | std::shared_ptr<Task> NameServerImpl::CreateAddTableInfoTask(const std::string& alias, const std::string& endpoint, |
| 7107 | const std::string& name, const std::string& db, |
nothing calls this directly
no outgoing calls
no test coverage detected