mbdavid/LiteDB

[BUG] Use EnterTransaction() before EnterLock

390620652 opened this issue · 2 comments

Version
5.019/OS/.NET 8. (REQUIRED)

Describe the bug
When I call Upsert function in two thread, this exception might occur occasionally.

---> LiteDB.LiteException: Use EnterTransaction() before EnterLock(name)
at LiteDB.Engine.EngineState.Validate()
at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func2 fn) at LiteDB.LiteCollection1.Upsert(T entity)