MCPcopy Create free account
hub / github.com/alibaba/euler / InitGraphMeta

Method InitGraphMeta

euler/client/client_manager.cc:85–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85bool ClientManager::InitGraphMeta() {
86 std::string meta;
87 if (!server_monitor_->GetShardMeta(0, "graph_meta", &meta)) {
88 EULER_LOG(ERROR) << "get shard meta fail";
89 return false;
90 }
91
92 if (!meta_.Deserialize(meta)) {
93 EULER_LOG(ERROR) << "Inavlid meta got, meta size: " << meta.size();
94 return false;
95 }
96
97 return true;
98}
99
100bool ClientManager::init_succ_ = false;
101ClientManager* ClientManager::instance_ = nullptr;

Callers

nothing calls this directly

Calls 3

GetShardMetaMethod · 0.80
DeserializeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected