litedb-org / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.65k stars 1.25k forks source link

[BUG] No thread safety since 5.0.21 #2554

Open feitzi opened 1 month ago

feitzi commented 1 month ago

Version 5.0.21

Describe the bug We assume that a LiteDatabase instance is not thread-safe since the last update (V 5.0.21), maybe this PR was wrong: #2447 Our application writes code to the same LiteDatabase instance in different threads. And since 5.0.21 we have a strange bug that sometimes writes corrupt data.