equalitie / ouisync

A secure peer-to-peer file synchronization app.
https://ouisync.net
Mozilla Public License 2.0
49 stars 9 forks source link

Race condition in store cache #142

Closed madadam closed 1 year ago

madadam commented 1 year ago

We commit the cache transaction after we commit the db one, so there is a time after the db transaction is committed but before the cache transaction is where another thread/task reading from the cache might get stale data.

madadam commented 1 year ago

Fixed in 1eaebac553ae54b549a36088233754a9e534a794