From 4d041385129b626be318610511f14344c500fc0c Mon Sep 17 00:00:00 2001 From: anand76 Date: Mon, 27 Nov 2023 13:00:15 -0800 Subject: [PATCH] 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 --- db_stress_tool/db_stress_common.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/db_stress_tool/db_stress_common.cc b/db_stress_tool/db_stress_common.cc index c0087dc5c7..dc600a49f7 100644 --- a/db_stress_tool/db_stress_common.cc +++ b/db_stress_tool/db_stress_common.cc @@ -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,