endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
829 stars 72 forks source link

fix(Daemon): node file powers write lock #1872

Closed kumavis closed 8 months ago

kumavis commented 11 months ago

use mutex to ensure serial file operations

all updates happen synchronously in memory all disk operations are queued to ensure that the previous operation completed before continuing

kumavis commented 9 months ago

it was said that we should push this into file powers

kriskowal commented 9 months ago

it was said that we should push this into file powers

It was me. I might have been wrong, and if I was wrong, it would be because doing so might complicate ejecting the powers into other Endo packages someday. But, since these powers are currently all internal, refactoring our way to brilliance is still fine and on the path of least regret.