diff --git a/cache/lru_cache.h b/cache/lru_cache.h index 6313c69db..1d9c8935c 100644 --- a/cache/lru_cache.h +++ b/cache/lru_cache.h @@ -133,7 +133,6 @@ struct LRUHandle { // Caclculate the memory usage by metadata inline size_t CalcTotalCharge( CacheMetadataChargePolicy metadata_charge_policy) { - assert(key_length); size_t meta_charge = 0; if (metadata_charge_policy == kFullChargeCacheMetadata) { #ifdef ROCKSDB_MALLOC_USABLE_SIZE