| 1088 | } |
| 1089 | |
| 1090 | void launchQueuedWork(KeyRange keys, const DDEnabledState* ddEnabledState) { |
| 1091 | // combine all queued work in the key range and check to see if there is anything to launch |
| 1092 | std::set<RelocateData, std::greater<RelocateData>> combined; |
| 1093 | auto f = queueMap.intersectingRanges(keys); |
| 1094 | for (auto it = f.begin(); it != f.end(); ++it) { |
| 1095 | if (it->value().src.size() && queue[it->value().src[0]].count(it->value())) |
| 1096 | combined.insert(it->value()); |
| 1097 | } |
| 1098 | launchQueuedWork(combined, ddEnabledState); |
| 1099 | } |
| 1100 | |
| 1101 | void launchQueuedWork(const std::set<UID>& serversToLaunchFrom, const DDEnabledState* ddEnabledState) { |
| 1102 | // combine all work from the source servers to see if there is anything new to launch |
no test coverage detected