Congyuwang / RocksDict

Python fast on-disk dictionary / RocksDB & SpeeDB Python binding
https://congyuwang.github.io/RocksDict/rocksdict.html
MIT License
173 stars 8 forks source link

The LOCK file is not being removed #82

Closed crosschainer closed 11 months ago

crosschainer commented 11 months ago

When using db.close() it is not removing the LOCK file in the database folder.

Congyuwang commented 11 months ago

This is as expected. The LOCK file will not be deleted on db.close(). LOCK file does not work by removing or adding a file. See https://stackoverflow.com/questions/575328/fcntl-lockf-which-is-better-to-use-for-file-locking for detail.