MCPcopy Create free account
hub / github.com/Tencent/phxqueue / GetAllTopicConfig

Method GetAllTopicConfig

phxqueue/config/globalconfig.cpp:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149
150comm::RetCode GlobalConfig::GetAllTopicConfig(vector<shared_ptr<const TopicConfig> > &topic_configs) const {
151 topic_configs.clear();
152 for (auto &&it : impl_->topic_id2topic_config) {
153 auto &&topic_config = it.second;
154 if (topic_config) {
155 topic_config->Load();
156 topic_configs.push_back(topic_config);
157 }
158 }
159
160 return comm::RetCode::RET_OK;
161}
162
163comm::RetCode GlobalConfig::GetAllTopicID(set<int> &topic_ids) const {
164 topic_ids.clear();

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.80

Tested by

no test coverage detected