now support rocksdb 5.3.0
This commit is contained in:
parent
23e304b0d1
commit
056d62d43d
3 changed files with 21 additions and 44 deletions
|
@ -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
|
pyrocksdb
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
|
|
@ -868,30 +868,6 @@ cdef class Options(object):
|
||||||
def __set__(self, value):
|
def __set__(self, value):
|
||||||
self.opts.max_bytes_for_level_multiplier_additional = 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:
|
property use_fsync:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
return self.opts.use_fsync
|
return self.opts.use_fsync
|
||||||
|
@ -1012,11 +988,12 @@ cdef class Options(object):
|
||||||
def __set__(self, value):
|
def __set__(self, value):
|
||||||
self.opts.purge_redundant_kvs_while_flush = value
|
self.opts.purge_redundant_kvs_while_flush = value
|
||||||
|
|
||||||
property allow_os_buffer:
|
# FIXME: remove to util/options_helper.h
|
||||||
def __get__(self):
|
# property allow_os_buffer:
|
||||||
return self.opts.allow_os_buffer
|
# def __get__(self):
|
||||||
def __set__(self, value):
|
# return self.opts.allow_os_buffer
|
||||||
self.opts.allow_os_buffer = value
|
# def __set__(self, value):
|
||||||
|
# self.opts.allow_os_buffer = value
|
||||||
|
|
||||||
property allow_mmap_reads:
|
property allow_mmap_reads:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
|
@ -1066,12 +1043,6 @@ cdef class Options(object):
|
||||||
def __set__(self, value):
|
def __set__(self, value):
|
||||||
self.opts.bytes_per_sync = 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:
|
property compaction_style:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
if self.opts.compaction_style == kCompactionStyleLevel:
|
if self.opts.compaction_style == kCompactionStyleLevel:
|
||||||
|
@ -1137,11 +1108,12 @@ cdef class Options(object):
|
||||||
else:
|
else:
|
||||||
raise Exception("Unknown compaction style")
|
raise Exception("Unknown compaction style")
|
||||||
|
|
||||||
property filter_deletes:
|
# Deprecate
|
||||||
def __get__(self):
|
# property filter_deletes:
|
||||||
return self.opts.filter_deletes
|
# def __get__(self):
|
||||||
def __set__(self, value):
|
# return self.opts.filter_deletes
|
||||||
self.opts.filter_deletes = value
|
# def __set__(self, value):
|
||||||
|
# self.opts.filter_deletes = value
|
||||||
|
|
||||||
property max_sequential_skip_in_iterations:
|
property max_sequential_skip_in_iterations:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -31,13 +31,13 @@ mod1 = Extension(
|
||||||
)
|
)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pyrocksdb",
|
name="python-rocksdb",
|
||||||
version='0.5',
|
version='0.6',
|
||||||
description="Python bindings for RocksDB",
|
description="Python bindings for RocksDB",
|
||||||
keywords='rocksdb',
|
keywords='rocksdb',
|
||||||
author='Stephan Hofmockel',
|
author='Ming Hsuan Tu',
|
||||||
author_email="Use the github issues",
|
author_email="Use the github issues",
|
||||||
url="https://github.com/stephan-hof/pyrocksdb",
|
url="https://github.com/twmht/pyrocksdb.git",
|
||||||
license='BSD License',
|
license='BSD License',
|
||||||
install_requires=['setuptools'],
|
install_requires=['setuptools'],
|
||||||
package_dir={'rocksdb': 'rocksdb'},
|
package_dir={'rocksdb': 'rocksdb'},
|
||||||
|
|
Loading…
Reference in a new issue