Skip to content
Snippets Groups Projects
  1. Nov 11, 2021
  2. Nov 08, 2021
  3. Jan 28, 2021
  4. Jan 27, 2021
  5. Sep 03, 2020
  6. Aug 31, 2020
  7. Aug 07, 2020
  8. Jul 19, 2020
  9. May 18, 2020
  10. Apr 07, 2020
  11. Mar 12, 2020
  12. Apr 22, 2019
  13. Feb 02, 2019
  14. Feb 01, 2019
    • Alexander Böhn's avatar
      Allow `rocksdb.DB` instances to be manually closed · 952e7bb4
      Alexander Böhn authored
      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.
      952e7bb4
Loading