Skip to content

Commit

Permalink
Remove table_cache_remove_scan_count_limit because it is also removed…
Browse files Browse the repository at this point in the history
… from rocksdb.
  • Loading branch information
stephan-hof committed Apr 12, 2015
1 parent 2cbeb48 commit b9f06fe
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 21 deletions.
13 changes: 0 additions & 13 deletions docs/api/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
^^^^
Expand Down
6 changes: 0 additions & 6 deletions rocksdb/_rocksdb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion rocksdb/options.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9f06fe

Please sign in to comment.