diff --git a/cache/lru_cache.h b/cache/lru_cache.h index 6313c69dba98f1d3452ac189dc8f746f960b81a3..1d9c8935c9eebd65b20e6e05c577e1e1674dac83 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