php-leveldb icon indicating copy to clipboard operation
php-leveldb copied to clipboard

Fix reopen cleanup in PHP LevelDB

Open reeze opened this issue 7 months ago • 0 comments

Summary

  • ensure comparator and callable resources are released when reopening a DB
  • reset internal DB pointer to avoid double close
  • free block cache objects on reopen or error
  • add test for block_cache_size reopen logic

Testing

  • make test TESTS=tests/022-block-cache.phpt
  • make test TESTS=tests

https://chatgpt.com/codex/tasks/task_e_683fca06d404832785bd2dd1bf232737

reeze avatar Jun 04 '25 10:06 reeze