|
|
|
@ -71,7 +71,7 @@ storage.flushToStorageAsync = async (options) => { |
|
|
|
|
* database is loaded and a crash happens. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
let fd, errorOnFsync, errorOnClose |
|
|
|
|
let fd, errorOnFsync, errorOnClose // TODO: sometimes it leaves some file descriptors open
|
|
|
|
|
try { |
|
|
|
|
fd = await fsPromises.open(filename, flags) |
|
|
|
|
try { |
|
|
|
|