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

Function HasFailedCommitWorkForPrefix

src/common/cloud_work_queue.cpp:200–205  ·  view source on GitHub ↗

Like HasFailedWorkForPrefix but ignores bestEffort items.

Source from the content-addressed store, hash-verified

198
199// Like HasFailedWorkForPrefix but ignores bestEffort items.
200static 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
207void ClearFailedWorkForPrefix(const std::string& prefix) {
208 std::lock_guard<std::mutex> lock(g_queueMutex);

Callers 1

DrainQueueForAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected