From 056d62d43db9f2b5b206620626bb24839f8d3a3f Mon Sep 17 00:00:00 2001 From: twmht Date: Thu, 23 Mar 2017 22:13:45 +0800 Subject: [PATCH] now support rocksdb 5.3.0 --- README.rst | 5 +++++ rocksdb/_rocksdb.pyx | 52 ++++++++++---------------------------------- setup.py | 8 +++---- 3 files changed, 21 insertions(+), 44 deletions(-) diff --git a/README.rst b/README.rst index 55b4748..4957a9f 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,8 @@ +Note +========= +The original pyrocksdb has not been updated for long time. I update the pyrocksdb to support the latest rocksdb. Please open the issues in github if you have any problem. + + pyrocksdb ========= diff --git a/rocksdb/_rocksdb.pyx b/rocksdb/_rocksdb.pyx index 95422fc..31ccaab 100644 --- a/rocksdb/_rocksdb.pyx +++ b/rocksdb/_rocksdb.pyx @@ -868,30 +868,6 @@ cdef class Options(object): def __set__(self, value): self.opts.max_bytes_for_level_multiplier_additional = value - property expanded_compaction_factor: - def __get__(self): - return self.opts.expanded_compaction_factor - def __set__(self, value): - self.opts.expanded_compaction_factor = value - - property source_compaction_factor: - def __get__(self): - return self.opts.source_compaction_factor - def __set__(self, value): - self.opts.source_compaction_factor = value - - property max_grandparent_overlap_factor: - def __get__(self): - return self.opts.max_grandparent_overlap_factor - def __set__(self, value): - self.opts.max_grandparent_overlap_factor = value - - property disable_data_sync: - def __get__(self): - return self.opts.disableDataSync - def __set__(self, value): - self.opts.disableDataSync = value - property use_fsync: def __get__(self): return self.opts.use_fsync @@ -1012,11 +988,12 @@ cdef class Options(object): def __set__(self, value): self.opts.purge_redundant_kvs_while_flush = value - property allow_os_buffer: - def __get__(self): - return self.opts.allow_os_buffer - def __set__(self, value): - self.opts.allow_os_buffer = value + # FIXME: remove to util/options_helper.h + # property allow_os_buffer: + # def __get__(self): + # return self.opts.allow_os_buffer + # def __set__(self, value): + # self.opts.allow_os_buffer = value property allow_mmap_reads: def __get__(self): @@ -1066,12 +1043,6 @@ cdef class Options(object): def __set__(self, value): self.opts.bytes_per_sync = value - property verify_checksums_in_compaction: - def __get__(self): - return self.opts.verify_checksums_in_compaction - def __set__(self, value): - self.opts.verify_checksums_in_compaction = value - property compaction_style: def __get__(self): if self.opts.compaction_style == kCompactionStyleLevel: @@ -1137,11 +1108,12 @@ cdef class Options(object): else: raise Exception("Unknown compaction style") - property filter_deletes: - def __get__(self): - return self.opts.filter_deletes - def __set__(self, value): - self.opts.filter_deletes = value + # Deprecate + # property filter_deletes: + # def __get__(self): + # return self.opts.filter_deletes + # def __set__(self, value): + # self.opts.filter_deletes = value property max_sequential_skip_in_iterations: def __get__(self): diff --git a/setup.py b/setup.py index 26adc17..9d37fbe 100644 --- a/setup.py +++ b/setup.py @@ -31,13 +31,13 @@ mod1 = Extension( ) setup( - name="pyrocksdb", - version='0.5', + name="python-rocksdb", + version='0.6', description="Python bindings for RocksDB", keywords='rocksdb', - author='Stephan Hofmockel', + author='Ming Hsuan Tu', author_email="Use the github issues", - url="https://github.com/stephan-hof/pyrocksdb", + url="https://github.com/twmht/pyrocksdb.git", license='BSD License', install_requires=['setuptools'], package_dir={'rocksdb': 'rocksdb'},