コード例 #1
0
        // Return true if any of the CasHashes passed in are missing
        private bool HasMissingContent(IEnumerable <CasHash> casHashes)
        {
            foreach (CasHash casHash in casHashes)
            {
                // We optimize through the pinned list just so we don't spend
                // time for an on disk check if we have it pinned
                if (!m_pinnedToCas.ContainsKey(casHash))
                {
                    if (!m_cache.CasExists(casHash))
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }