952e7bb4ab
While `delete rocks_ptr` is a deterministic operation in C++, the Python analogue `del rocks_handle` is not – disposal and finalization of the Rocks database are entirely dependent on the Python garbage collector (q.v. the `python-rocksdb` tests themselves, which call `gc.collect()` after `del rocks_handle` to attempt to force the destructor to run). This change exposes a method to trigger the destruction of the underlying Rocks database pointer (deterministic!) through the Python Rocks handle; existing code will not need to be changed, as the Python object destructor (non-deterministic!) will now call this method. This is the second revision of this PR – it resolves the first revision, #39. |
||
---|---|---|
.. | ||
cpp | ||
tests | ||
__init__.py | ||
_rocksdb.pyx | ||
backup.pxd | ||
cache.pxd | ||
comparator.pxd | ||
db.pxd | ||
env.pxd | ||
errors.py | ||
filter_policy.pxd | ||
interfaces.py | ||
iterator.pxd | ||
logger.pxd | ||
memtablerep.pxd | ||
merge_operator.pxd | ||
merge_operators.py | ||
options.pxd | ||
slice_.pxd | ||
slice_transform.pxd | ||
snapshot.pxd | ||
status.pxd | ||
std_memory.pxd | ||
table_factory.pxd | ||
universal_compaction.pxd |