rocksdb/cache
Denis Hananein 9f3475eccf Fix compilation errors, clang++-15 (#10907)
Summary:
I've tried to compile the main branch, but there are two minor things which are make CE.
I'm not sure about the second one (`num_empty_non_l0_level`), probably there is should be additional assert.

```
-c ../cache/clock_cache.cc
[build] ../cache/clock_cache.cc:855:15: error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable]
[build]   for (size_t i = 0; &array_[current] != h; i++) {
[build]               ^
```

```
[build] ../db/version_set.cc:3665:7: error: variable 'num_empty_non_l0_level' set but not used [-Werror,-Wunused-but-set-variable]
[build]   int num_empty_non_l0_level = 0;
[build]       ^
[build] 1 error generated.
```

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10907

Reviewed By: jay-zhuang

Differential Revision: D40866667

Pulled By: ajkr

fbshipit-source-id: 963b7bd56859d0b3b2779cd36fad229425cb7b17
2022-10-31 18:24:44 -07:00
..
cache.cc
cache_bench.cc
cache_bench_tool.cc
cache_entry_roles.cc
cache_entry_roles.h
cache_entry_stats.h
cache_helpers.h
cache_key.cc
cache_key.h
cache_reservation_manager.cc
cache_reservation_manager.h
cache_reservation_manager_test.cc
cache_test.cc clang-format cache/ and util/ directories (#10867) 2022-10-26 12:08:20 -07:00
charged_cache.cc
charged_cache.h
clock_cache.cc Fix compilation errors, clang++-15 (#10907) 2022-10-31 18:24:44 -07:00
clock_cache.h Refactor ShardedCache for more sharing, static polymorphism (#10801) 2022-10-18 22:06:57 -07:00
compressed_secondary_cache.cc
compressed_secondary_cache.h
compressed_secondary_cache_test.cc
fast_lru_cache.cc Refactor ShardedCache for more sharing, static polymorphism (#10801) 2022-10-18 22:06:57 -07:00
fast_lru_cache.h clang-format cache/ and util/ directories (#10867) 2022-10-26 12:08:20 -07:00
lru_cache.cc Use malloc/free for LRUHandle instead of new[]/delete[] (#10884) 2022-10-27 15:39:29 -07:00
lru_cache.h Use malloc/free for LRUHandle instead of new[]/delete[] (#10884) 2022-10-27 15:39:29 -07:00
lru_cache_test.cc Refactor ShardedCache for more sharing, static polymorphism (#10801) 2022-10-18 22:06:57 -07:00
sharded_cache.cc Refactor ShardedCache for more sharing, static polymorphism (#10801) 2022-10-18 22:06:57 -07:00
sharded_cache.h Refactor ShardedCache for more sharing, static polymorphism (#10801) 2022-10-18 22:06:57 -07:00