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
This commit is contained in:
Aashish Pant 2015-04-24 14:45:12 -07:00
parent 794ccfde89
commit 242f9b4c26

View File

@ -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_);