Skip to content

Commit

Permalink
now support rocksdb 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
twmht committed Mar 23, 2017
1 parent 23e304b commit 056d62d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 44 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -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
=========

Expand Down
52 changes: 12 additions & 40 deletions rocksdb/_rocksdb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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):
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ def cythonize(extensions): return extensions
)

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'},
Expand Down

0 comments on commit 056d62d

Please sign in to comment.