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:
parent
794ccfde89
commit
242f9b4c26
@ -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…
Reference in New Issue
Block a user