Update _rocksdb.pyx
This commit is contained in:
parent
b602bde7f6
commit
f3be0a05d9
1 changed files with 6 additions and 3 deletions
|
@ -861,7 +861,6 @@ cdef class ColumnFamilyHandle:
|
||||||
# a situation where we are invalid, but match a valid handle's hash
|
# a situation where we are invalid, but match a valid handle's hash
|
||||||
return hash((self.id, self.name, id(self._ref)))
|
return hash((self.id, self.name, id(self._ref)))
|
||||||
|
|
||||||
|
|
||||||
cdef class ColumnFamilyOptions(object):
|
cdef class ColumnFamilyOptions(object):
|
||||||
cdef options.ColumnFamilyOptions* copts
|
cdef options.ColumnFamilyOptions* copts
|
||||||
cdef PyComparator py_comparator
|
cdef PyComparator py_comparator
|
||||||
|
@ -1412,6 +1411,12 @@ cdef class Options(ColumnFamilyOptions):
|
||||||
def __set__(self, value):
|
def __set__(self, value):
|
||||||
self.opts.WAL_ttl_seconds = value
|
self.opts.WAL_ttl_seconds = value
|
||||||
|
|
||||||
|
property db_write_buffer_size:
|
||||||
|
def __get__(self):
|
||||||
|
return self.opts.db_write_buffer_size
|
||||||
|
def __set__(self, value):
|
||||||
|
self.opts.db_write_buffer_size = value
|
||||||
|
|
||||||
property ttl:
|
property ttl:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
return self.opts.ttl
|
return self.opts.ttl
|
||||||
|
@ -1511,7 +1516,6 @@ cdef class Options(ColumnFamilyOptions):
|
||||||
self.py_row_cache = value
|
self.py_row_cache = value
|
||||||
self.opts.row_cache = self.py_row_cache.get_cache()
|
self.opts.row_cache = self.py_row_cache.get_cache()
|
||||||
|
|
||||||
|
|
||||||
# Forward declaration
|
# Forward declaration
|
||||||
cdef class Snapshot
|
cdef class Snapshot
|
||||||
|
|
||||||
|
@ -1573,7 +1577,6 @@ cdef class WriteBatch(object):
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return WriteBatchIterator(self)
|
return WriteBatchIterator(self)
|
||||||
|
|
||||||
|
|
||||||
@cython.internal
|
@cython.internal
|
||||||
cdef class WriteBatchIterator(object):
|
cdef class WriteBatchIterator(object):
|
||||||
# Need a reference to the WriteBatch.
|
# Need a reference to the WriteBatch.
|
||||||
|
|
Loading…
Reference in a new issue