Fix CLANG build issue introduced in previous commit

Summary: Added keyword override for SetCapacity()

Test Plan: Fixes build

Reviewers: igor

Reviewed By: igor

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D37647
main
Aashish Pant 10 years ago
parent 794ccfde89
commit 242f9b4c26
  1. 2
      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_);

Loading…
Cancel
Save