diff --git a/cache/lru_cache.h b/cache/lru_cache.h index 827e0bece..32edd9ec9 100644 --- a/cache/lru_cache.h +++ b/cache/lru_cache.h @@ -67,7 +67,7 @@ struct LRUHandle { IS_HIGH_PRI = (1 << 1), // Whether this entry is in high-pri pool. IN_HIGH_PRI_POOL = (1 << 2), - // Wwhether this entry has had any lookups (hits). + // Whether this entry has had any lookups (hits). HAS_HIT = (1 << 3), }; @@ -130,7 +130,7 @@ struct LRUHandle { delete[] reinterpret_cast(this); } - // Caclculate the memory usage by metadata + // Calculate the memory usage by metadata inline size_t CalcTotalCharge( CacheMetadataChargePolicy metadata_charge_policy) { size_t meta_charge = 0;