MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / ClearFailedWorkForPrefix

Function ClearFailedWorkForPrefix

src/common/cloud_work_queue.cpp:207–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void ClearFailedWorkForPrefix(const std::string& prefix) {
208 std::lock_guard<std::mutex> lock(g_queueMutex);
209 for (auto it = g_failedPaths.begin(); it != g_failedPaths.end(); ) {
210 if (it->rfind(prefix, 0) == 0) it = g_failedPaths.erase(it);
211 else ++it;
212 }
213}
214
215static void RequeueFailedWorkForPrefixLocked(const std::string& prefix) {
216 for (auto it = g_failedWorkItems.begin(); it != g_failedWorkItems.end(); ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected