Like HasFailedWorkForPrefix but ignores bestEffort items.
| 198 | |
| 199 | // Like HasFailedWorkForPrefix but ignores bestEffort items. |
| 200 | static bool HasFailedCommitWorkForPrefix(const std::string& prefix) { |
| 201 | for (const auto& [path, item] : g_failedWorkItems) { |
| 202 | if (!item.bestEffort && path.rfind(prefix, 0) == 0) return true; |
| 203 | } |
| 204 | return false; |
| 205 | } |
| 206 | |
| 207 | void ClearFailedWorkForPrefix(const std::string& prefix) { |
| 208 | std::lock_guard<std::mutex> lock(g_queueMutex); |