nedb icon indicating copy to clipboard operation
nedb copied to clipboard

Concurrent autoload instance fails on db tempfile renaming

Open aspacca opened this issue 7 years ago • 2 comments

When using nedb for a webapp with concurrent requests that open the same db file the library tries to do multiple rename operations on db tempfile, and when the first one already succeeded the following ones fails since the tempfile doesn't exist anymore: ./node_modules/nedb/lib/datastore.js:77 if (err) { throw err; } ^ Error: ENOENT: no such file or directory, open './server/db/LpJTzs81YzLVczd9/history/fiveMinSnapshot.db~'

aspacca avatar Dec 09 '17 13:12 aspacca

any updates on this?

nishmeht7 avatar Jul 14 '19 00:07 nishmeht7

any update on this?

sourvil avatar Jun 24 '20 15:06 sourvil