Add dynamic disabling of compressed cache to db_stress (#12102)

Summary:
We now support re-enabling the compressed portion of the `TieredCache` after dynamically disabling it. Add it to db_stress for testing purposes.

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

Reviewed By: akankshamahajan15

Differential Revision: D51594259

Pulled By: anand1976

fbshipit-source-id: ea544e30a5ebd6290fc9ed46a241f09634764d2a
This commit is contained in:
anand76 2023-11-27 13:00:15 -08:00 committed by Facebook GitHub Bot
parent 6e7701d49b
commit 4d04138512
1 changed files with 0 additions and 3 deletions

View File

@ -210,9 +210,6 @@ void CompressedCacheSetCapacityThread(void* v) {
(double)thread->rand.Uniform(
FLAGS_compressed_secondary_cache_ratio * 100) /
100;
if (new_comp_cache_ratio == 0.0) {
new_comp_cache_ratio = 0.05;
}
fprintf(stderr, "New comp cache ratio = %f\n", new_comp_cache_ratio);
s = UpdateTieredCache(block_cache, /*capacity*/ -1,