You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SharedCache] Fix overzealous alert about missing shared cache entries
Following the conversation in #6631 we are going to make the edited alerts warnings and then also fix the warning showing on certain shared caches even when all entries are present.
// On older caches we don't have any sub-caches, so we want to skip alerting the user to that fact.
869
+
if (entryHeader.subCacheArrayOffset == 0)
870
+
expectedFileCount = 0;
871
+
}
865
872
}
866
873
for (constauto& missingFileName: missingCacheEntries)
867
874
m_logger->LogErrorF("Secondary cache file '{}' is missing!", missingFileName);
868
875
869
876
// Verify that we have the required amount of sub-caches, if not alert the user.
870
877
if (expectedFileCount == 1)
871
-
m_logger->LogAlertF("Primary cache file '{}' has no sub-caches! You are likely opening a secondary cache file instead of a primary one.", m_primaryFileName);
878
+
m_logger->LogWarnF("Primary cache file '{}' has no sub-caches! You are likely opening a secondary cache file instead of a primary one.", m_primaryFileName);
872
879
elseif (totalEntries < expectedFileCount)
873
-
m_logger->LogAlertF("Insufficient cache files in dyld header ({}/{}), loading as partial shared cache...", totalEntries, expectedFileCount);
880
+
m_logger->LogWarnF("Insufficient cache files in dyld header ({}/{}), loading as partial shared cache...", totalEntries, expectedFileCount);
0 commit comments