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

Method GetStoreConfig

phxqueue/config/globalconfig.cpp:193–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193comm::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
207comm::RetCode GlobalConfig::GetSchedulerConfig(const int topic_id, shared_ptr<const SchedulerConfig> &scheduler_config) {
208 scheduler_config = nullptr;

Callers 15

ProcessMethod · 0.80
GetStoreIDMethod · 0.80
InitTopicIDMethod · 0.80
PaxosInitMethod · 0.80
CheckRequestCommMethod · 0.80
CheckMasterMethod · 0.80
GetCandidateAddrsMethod · 0.80
KeepMasterMethod · 0.80
ClearSyncCtrlMethod · 0.80
MakeCheckPointMethod · 0.80
ReplayMethod · 0.80
GetAllLocalQueueMethod · 0.80

Calls 1

LoadMethod · 0.80

Tested by 5

ProcessMethod · 0.64
ProcessMethod · 0.64
AddMethod · 0.64
TestGlobalConfigMethod · 0.64