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

Function HasQueuedDeleteForPathLocked

src/common/cloud_work_queue.cpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static bool HasQueuedDeleteForPathLocked(const std::string& path) {
108 for (const auto& queued : g_workQueue) {
109 if (queued.type == WorkItem::Delete && queued.cloudPath == path) return true;
110 }
111 return false;
112}
113
114static bool HasDeleteBarrierForPathLocked(const std::string& path) {
115 return HasQueuedDeleteForPathLocked(path) || g_activeDeletes.count(path) != 0;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected