| 736 | } |
| 737 | |
| 738 | bool ClusterMembershipMgr::IsBackendInExecutorGroups( |
| 739 | const BackendDescriptorPB& be_desc, const ExecutorGroups& executor_groups) { |
| 740 | for (const auto& executor_group : executor_groups) { |
| 741 | if (executor_group.second.LookUpBackendDesc(be_desc.address()) != nullptr) { |
| 742 | return true; |
| 743 | } |
| 744 | } |
| 745 | return false; |
| 746 | } |
| 747 | |
| 748 | /// For the default executor group, we assume that local reads are preferred and will |
| 749 | /// include the hostnames and IP addresses in the update to the frontend. For non-default |
nothing calls this directly
no test coverage detected