| 523 | } |
| 524 | |
| 525 | static 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 | |
| 534 | static void ClearMissingMetadataPath(const std::string& path) { |
| 535 | std::lock_guard<std::mutex> lock(g_missingMetadataMutex); |