Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Use EnterTransaction() before EnterLock #2484

Closed
390620652 opened this issue May 22, 2024 · 2 comments
Closed

[BUG] Use EnterTransaction() before EnterLock #2484

390620652 opened this issue May 22, 2024 · 2 comments
Labels

Comments

@390620652
Copy link

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)

@390620652 390620652 added the bug label May 22, 2024
@JKamsker
Copy link
Collaborator

JKamsker commented Jun 1, 2024

Could you please provide a small repro?

@JKamsker
Copy link
Collaborator

JKamsker commented Jun 4, 2024

The bug should have been resolved in v5.0.20

@JKamsker JKamsker closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants