| 256 | } |
| 257 | |
| 258 | bool MgrMap::all_support_module(const std::string& module) { |
| 259 | if (!have_module(module)) { |
| 260 | return false; |
| 261 | } |
| 262 | for (auto& p : standbys) { |
| 263 | if (!p.second.have_module(module)) { |
| 264 | return false; |
| 265 | } |
| 266 | } |
| 267 | return true; |
| 268 | } |
| 269 | |
| 270 | bool MgrMap::have_module(const std::string &module_name) const |
| 271 | { |
no test coverage detected