Add files via upload
This commit is contained in:
parent
92b8097048
commit
f166a5dca3
2 changed files with 15 additions and 14 deletions
|
@ -159,7 +159,6 @@ cdef class PyGenericComparator(PyComparator):
|
||||||
|
|
||||||
def __dealloc__(self):
|
def __dealloc__(self):
|
||||||
if not self.comparator_ptr == NULL:
|
if not self.comparator_ptr == NULL:
|
||||||
with nogil:
|
|
||||||
del self.comparator_ptr
|
del self.comparator_ptr
|
||||||
|
|
||||||
cdef object get_ob(self):
|
cdef object get_ob(self):
|
||||||
|
@ -772,7 +771,6 @@ cdef class _ColumnFamilyHandle:
|
||||||
|
|
||||||
def __dealloc__(self):
|
def __dealloc__(self):
|
||||||
if not self.handle == NULL:
|
if not self.handle == NULL:
|
||||||
with nogil:
|
|
||||||
del self.handle
|
del self.handle
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -881,7 +879,6 @@ cdef class ColumnFamilyOptions(object):
|
||||||
|
|
||||||
def __dealloc__(self):
|
def __dealloc__(self):
|
||||||
if not self.copts == NULL:
|
if not self.copts == NULL:
|
||||||
with nogil:
|
|
||||||
del self.copts
|
del self.copts
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
@ -1293,8 +1290,7 @@ cdef class Options(ColumnFamilyOptions):
|
||||||
|
|
||||||
def __dealloc__(self):
|
def __dealloc__(self):
|
||||||
if not self.opts == NULL:
|
if not self.opts == NULL:
|
||||||
with nogil:
|
self.copts = NULL
|
||||||
del self.copts
|
|
||||||
del self.opts
|
del self.opts
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
@ -1439,6 +1435,12 @@ cdef class Options(ColumnFamilyOptions):
|
||||||
def __set__(self, value):
|
def __set__(self, value):
|
||||||
self.opts.WAL_size_limit_MB = value
|
self.opts.WAL_size_limit_MB = value
|
||||||
|
|
||||||
|
property max_total_wal_size:
|
||||||
|
def __get__(self):
|
||||||
|
return self.opts.max_total_wal_size
|
||||||
|
def __set__(self, value):
|
||||||
|
self.opts.max_total_wal_size = value
|
||||||
|
|
||||||
property manifest_preallocation_size:
|
property manifest_preallocation_size:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
return self.opts.manifest_preallocation_size
|
return self.opts.manifest_preallocation_size
|
||||||
|
@ -1549,7 +1551,6 @@ cdef class WriteBatch(object):
|
||||||
|
|
||||||
def __dealloc__(self):
|
def __dealloc__(self):
|
||||||
if not self.batch == NULL:
|
if not self.batch == NULL:
|
||||||
with nogil:
|
|
||||||
del self.batch
|
del self.batch
|
||||||
|
|
||||||
def put(self, key, value):
|
def put(self, key, value):
|
||||||
|
@ -2304,7 +2305,6 @@ cdef class BaseIterator(object):
|
||||||
|
|
||||||
def __dealloc__(self):
|
def __dealloc__(self):
|
||||||
if not self.ptr == NULL:
|
if not self.ptr == NULL:
|
||||||
with nogil:
|
|
||||||
del self.ptr
|
del self.ptr
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
|
|
|
@ -87,7 +87,8 @@ cdef extern from "rocksdb/options.h" namespace "rocksdb":
|
||||||
int table_cache_numshardbits
|
int table_cache_numshardbits
|
||||||
uint64_t WAL_ttl_seconds
|
uint64_t WAL_ttl_seconds
|
||||||
uint64_t ttl
|
uint64_t ttl
|
||||||
uint64_t WAL_size_limit_MB
|
uint64_t WAL_size_limit_MB # Not supported
|
||||||
|
uint64_t max_total_wal_size
|
||||||
size_t manifest_preallocation_size
|
size_t manifest_preallocation_size
|
||||||
cpp_bool allow_mmap_reads
|
cpp_bool allow_mmap_reads
|
||||||
cpp_bool allow_mmap_writes
|
cpp_bool allow_mmap_writes
|
||||||
|
|
Loading…
Reference in a new issue