| 191 | } |
| 192 | |
| 193 | comm::RetCode GlobalConfig::GetStoreConfig(const int topic_id, shared_ptr<const StoreConfig> &store_config) { |
| 194 | store_config = nullptr; |
| 195 | |
| 196 | auto &&it = impl_->topic_id2store_config.find(topic_id); |
| 197 | if (it == impl_->topic_id2store_config.end()) { |
| 198 | NeedRebuild(); |
| 199 | return comm::RetCode::RET_ERR_RANGE_TOPIC; |
| 200 | } |
| 201 | if (!it->second) return comm::RetCode::RET_ERR_RANGE_TOPIC; |
| 202 | it->second->Load(); |
| 203 | store_config = it->second; |
| 204 | return comm::RetCode::RET_OK; |
| 205 | } |
| 206 | |
| 207 | comm::RetCode GlobalConfig::GetSchedulerConfig(const int topic_id, shared_ptr<const SchedulerConfig> &scheduler_config) { |
| 208 | scheduler_config = nullptr; |