diff --git a/docs/api/options.rst b/docs/api/options.rst index dc37d55b41f62bd022ffb9af9802f3a7f96cd7fd..21fddcd4845414f0dfa611869e05b910b9adb3e9 100644 --- a/docs/api/options.rst +++ b/docs/api/options.rst @@ -394,19 +394,6 @@ Options object | *Type:* ``int`` | *Default:* ``4`` - .. py:attribute:: table_cache_remove_scan_count_limit - - During data eviction of table's LRU cache, it would be inefficient - to strictly follow LRU because this piece of memory will not really - be released unless its refcount falls to zero. Instead, make two - passes: the first pass will release items with refcount = 1, - and if not enough space releases after scanning the number of - elements specified by this parameter, we will remove items in LRU - order. - - | *Type:* ``int`` - | *Default:* ``16`` - .. py:attribute:: arena_block_size size of one block in arena memory allocation. diff --git a/docs/changelog.rst b/docs/changelog.rst index 398f19fdcc9ae07c23e55af9ead643a58bfcf1fa..917d76a0cc05cc090f4cf16cffcd107dbf7010c4 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -48,7 +48,7 @@ In newer versions of rocksdb a bunch of options were moved or removed. * Moved ``Options.block_size_deviation`` to ``BlockBasedTableFactory`` * Moved ``Options.block_restart_interval`` to ``BlockBasedTableFactory`` * Moved ``Options.whole_key_filtering`` to ``BlockBasedTableFactory`` - +* Removed ``Options.table_cache_remove_scan_count_limit`` New: ^^^^ diff --git a/rocksdb/_rocksdb.pyx b/rocksdb/_rocksdb.pyx index 1a81fee9e7f152549c156675fdecef6e3bb540c4..9ef4514825e67fb67f187ce632e1750c1455958a 100644 --- a/rocksdb/_rocksdb.pyx +++ b/rocksdb/_rocksdb.pyx @@ -976,12 +976,6 @@ cdef class Options(object): def __set__(self, value): self.opts.table_cache_numshardbits = value - property table_cache_remove_scan_count_limit: - def __get__(self): - return self.opts.table_cache_remove_scan_count_limit - def __set__(self, value): - self.opts.table_cache_remove_scan_count_limit = value - property arena_block_size: def __get__(self): return self.opts.arena_block_size diff --git a/rocksdb/options.pxd b/rocksdb/options.pxd index 78b93e440c58bbeeb8c1450842a7b4af8f66e26e..ca4fd68cd4d12fb01f2e5450e88b12accde4a054 100644 --- a/rocksdb/options.pxd +++ b/rocksdb/options.pxd @@ -75,7 +75,6 @@ cdef extern from "rocksdb/options.h" namespace "rocksdb": unsigned int rate_limit_delay_max_milliseconds uint64_t max_manifest_file_size int table_cache_numshardbits - int table_cache_remove_scan_count_limit size_t arena_block_size # TODO: PrepareForBulkLoad() cpp_bool disable_auto_compactions