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

Method CreateAddTableInfoTask

src/nameserver/name_server_impl.cc:7094–7104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7092}
7093
7094std::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
7106std::shared_ptr<Task> NameServerImpl::CreateAddTableInfoTask(const std::string& alias, const std::string& endpoint,
7107 const std::string& name, const std::string& db,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected