File tree 4 files changed +21
-0
lines changed
4 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -4283,6 +4283,11 @@ void crocksdb_lru_cache_options_set_high_pri_pool_ratio(
4283
4283
opt->rep .high_pri_pool_ratio = high_pri_pool_ratio;
4284
4284
}
4285
4285
4286
+ void crocksdb_lru_cache_options_set_low_pri_pool_ratio (
4287
+ crocksdb_lru_cache_options_t * opt, double low_pri_pool_ratio) {
4288
+ opt->rep .low_pri_pool_ratio = low_pri_pool_ratio;
4289
+ }
4290
+
4286
4291
void crocksdb_lru_cache_options_set_memory_allocator (
4287
4292
crocksdb_lru_cache_options_t * opt, crocksdb_memory_allocator_t * allocator) {
4288
4293
opt->rep .memory_allocator = allocator->rep ;
Original file line number Diff line number Diff line change @@ -1756,6 +1756,9 @@ extern C_ROCKSDB_LIBRARY_API void
1756
1756
crocksdb_lru_cache_options_set_high_pri_pool_ratio (
1757
1757
crocksdb_lru_cache_options_t * , double );
1758
1758
extern C_ROCKSDB_LIBRARY_API void
1759
+ crocksdb_lru_cache_options_set_low_pri_pool_ratio (crocksdb_lru_cache_options_t * ,
1760
+ double );
1761
+ extern C_ROCKSDB_LIBRARY_API void
1759
1762
crocksdb_lru_cache_options_set_memory_allocator (crocksdb_lru_cache_options_t * ,
1760
1763
crocksdb_memory_allocator_t * );
1761
1764
extern C_ROCKSDB_LIBRARY_API crocksdb_cache_t * crocksdb_cache_create_lru (
Original file line number Diff line number Diff line change @@ -647,6 +647,10 @@ extern "C" {
647
647
opt : * mut DBLRUCacheOptions ,
648
648
high_pri_pool_ratio : c_double ,
649
649
) ;
650
+ pub fn crocksdb_lru_cache_options_set_low_pri_pool_ratio (
651
+ opt : * mut DBLRUCacheOptions ,
652
+ low_pri_pool_ratio : c_double ,
653
+ ) ;
650
654
pub fn crocksdb_lru_cache_options_set_memory_allocator (
651
655
opt : * mut DBLRUCacheOptions ,
652
656
allocator : * mut DBMemoryAllocator ,
Original file line number Diff line number Diff line change @@ -2480,6 +2480,15 @@ impl LRUCacheOptions {
2480
2480
}
2481
2481
}
2482
2482
2483
+ pub fn set_low_pri_pool_ratio ( & mut self , low_pri_pool_ratio : c_double ) {
2484
+ unsafe {
2485
+ crocksdb_ffi:: crocksdb_lru_cache_options_set_low_pri_pool_ratio (
2486
+ self . inner ,
2487
+ low_pri_pool_ratio,
2488
+ ) ;
2489
+ }
2490
+ }
2491
+
2483
2492
pub fn set_memory_allocator ( & mut self , allocator : MemoryAllocator ) {
2484
2493
unsafe {
2485
2494
crocksdb_ffi:: crocksdb_lru_cache_options_set_memory_allocator (
You can’t perform that action at this time.
0 commit comments