chrome-ssh-agent icon indicating copy to clipboard operation
chrome-ssh-agent copied to clipboard

Protect BigStorage operations with a mutex

Open ralimi opened this issue 3 years ago • 0 comments

Implement a mutex around BigStorage operations to prevent cleaning up chunks that may be referenced.

This is now technically possible since Delete() is no longer an atomic operation; it deletes keys, then cleans up dangling chunks. However, dangling chunks may be newly-referenced if Set() is invoked at the same time as Delete().

This is unlikely given that this is only done in the Options UI, but we should more systematically prevent it.

We can consider the Web Locks API.

ralimi avatar Aug 10 '22 03:08 ralimi