pilgr / Paper

Paper is a fast NoSQL-like storage for Java/Kotlin objects on Android with automatic schema migration support.
Apache License 2.0
2.34k stars 234 forks source link

Create DB dir Suggest add lock #159

Closed vihuela closed 4 years ago

vihuela commented 5 years ago

KeyLocker.java,Just do the same key lock, but when different key operations, will create a folder at the same time, it will report an exception Solution:DbStoragePlainFile.java,createPaperDir() add lock

pilgr commented 4 years ago

Please review the PR with the fix https://github.com/pilgr/Paper/pull/168

pilgr commented 4 years ago

Fixed and merged to master, included in the new version 2.7.1