Skip to content
Snippets Groups Projects
Unverified Commit 72edcfbd authored by Jan Segre's avatar Jan Segre Committed by GitHub
Browse files

Merge pull request #1 from HathorNetwork/fix/remove-block_cache_compressed

fix: remove block_cache_compressed for rocksdb-8.0.0 compatibility
parents 947f68a8 9e41524f
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ A more production ready open can look like this ::
opts.table_factory = rocksdb.BlockBasedTableFactory(
filter_policy=rocksdb.BloomFilterPolicy(10),
block_cache=rocksdb.LRUCache(2 * (1024 ** 3)),
block_cache_compressed=rocksdb.LRUCache(500 * (1024 ** 2)))
)
db = rocksdb.DB("test.db", opts)
......
......@@ -468,7 +468,6 @@ cdef class BlockBasedTableFactory(PyTableFactory):
index_type='binary_search',
checksum='crc32',
PyCache block_cache=None,
PyCache block_cache_compressed=None,
no_block_cache=False,
block_size=None,
block_size_deviation=None,
......@@ -497,9 +496,6 @@ cdef class BlockBasedTableFactory(PyTableFactory):
if block_cache is not None:
table_options.block_cache = block_cache.get_cache()
if block_cache_compressed is not None:
table_options.block_cache_compressed = block_cache_compressed.get_cache()
if no_block_cache:
table_options.no_block_cache = True
else:
......
......@@ -26,7 +26,6 @@ cdef extern from "rocksdb/table.h" namespace "rocksdb":
int block_restart_interval
cpp_bool whole_key_filtering
shared_ptr[Cache] block_cache
shared_ptr[Cache] block_cache_compressed
cpp_bool enable_index_compression
cpp_bool cache_index_and_filter_blocks
int format_version
......
[metadata]
name = rocksdb
version = 0.9.1
version = 0.9.2
description = Python bindings for RocksDB
long_description = file: README.rst
long_description_content_type = text/x-rst
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment