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

Method GetStoreByAddr

phxqueue/config/storeconfig.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135comm::RetCode StoreConfig::GetStoreByAddr(const comm::proto::Addr &addr, std::shared_ptr<const proto::Store> &store) const {
136 comm::RetCode ret;
137
138 int store_id;
139 if (comm::RetCode::RET_OK != (ret = GetStoreIDByAddr(addr, store_id))) return ret;
140 return GetStoreByStoreID(store_id, store);
141}
142
143
144} // namespace config

Callers 6

PaxosInitMethod · 0.80
CheckRequestCommMethod · 0.80
CheckMasterMethod · 0.80
KeepMasterMethod · 0.80
CheckStoreConfigMethod · 0.80
TestStoreConfigMethod · 0.80

Calls

no outgoing calls

Tested by 2

CheckStoreConfigMethod · 0.64
TestStoreConfigMethod · 0.64