mirror of https://github.com/facebook/rocksdb.git
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:
parent
6e7701d49b
commit
4d04138512
|
@ -210,9 +210,6 @@ void CompressedCacheSetCapacityThread(void* v) {
|
||||||
(double)thread->rand.Uniform(
|
(double)thread->rand.Uniform(
|
||||||
FLAGS_compressed_secondary_cache_ratio * 100) /
|
FLAGS_compressed_secondary_cache_ratio * 100) /
|
||||||
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);
|
fprintf(stderr, "New comp cache ratio = %f\n", new_comp_cache_ratio);
|
||||||
|
|
||||||
s = UpdateTieredCache(block_cache, /*capacity*/ -1,
|
s = UpdateTieredCache(block_cache, /*capacity*/ -1,
|
||||||
|
|
Loading…
Reference in New Issue