| 83 | } |
| 84 | |
| 85 | bool 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 | |
| 100 | bool ClientManager::init_succ_ = false; |
| 101 | ClientManager* ClientManager::instance_ = nullptr; |
nothing calls this directly
no test coverage detected