diff --git a/util/cache.cc b/util/cache.cc index a623e29ce..781e87049 100644 --- a/util/cache.cc +++ b/util/cache.cc @@ -481,7 +481,7 @@ class ShardedLRUCache : public Cache { virtual ~ShardedLRUCache() { delete[] shards_; } - virtual void SetCapacity(size_t capacity) { + virtual void SetCapacity(size_t capacity) override { int num_shards = 1 << num_shard_bits_; const size_t per_shard = (capacity + (num_shards - 1)) / num_shards; MutexLock l(&capacity_mutex_);