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

Function ClearMissingMetadataForApp

src/common/cloud_storage.cpp:525–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525static void ClearMissingMetadataForApp(uint32_t accountId, uint32_t appId) {
526 std::string prefix = std::to_string(accountId) + "/" + std::to_string(appId) + "/";
527 std::lock_guard<std::mutex> lock(g_missingMetadataMutex);
528 for (auto it = g_missingMetadataPaths.begin(); it != g_missingMetadataPaths.end(); ) {
529 if (it->rfind(prefix, 0) == 0) it = g_missingMetadataPaths.erase(it);
530 else ++it;
531 }
532}
533
534static void ClearMissingMetadataPath(const std::string& path) {
535 std::lock_guard<std::mutex> lock(g_missingMetadataMutex);

Callers 1

StoreBlobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected