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

Fix #2265 Stackoverflow when Self reference #2493

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

JKamsker
Copy link
Collaborator

@JKamsker JKamsker commented Jun 5, 2024

@JKamsker JKamsker self-assigned this Jun 5, 2024
@JKamsker JKamsker merged commit 7dd20c7 into mbdavid:master Jun 5, 2024
1 check passed
einarmo added a commit to einarmo/LiteDB that referenced this pull request Sep 3, 2024
This fixes a race condition in BsonMapper, caused by a fix to a
different issue in mbdavid#2493.

It seems like the current approach of checking the dictionary twice is
deliberate. That said, I don't believe reading from a dictionary
that may be in the process of being updated is actually safe to begin
with.
einarmo added a commit to einarmo/LiteDB that referenced this pull request Sep 3, 2024
This fixes a race condition in BsonMapper, caused by a fix to a
different issue in mbdavid#2493.

It seems like the current approach of checking the dictionary twice is
deliberate. That said, I don't believe reading from a dictionary
that may be in the process of being updated is actually safe to begin
with.
einarmo added a commit to einarmo/LiteDB that referenced this pull request Sep 3, 2024
This fixes a race condition in BsonMapper, caused by a fix to a
different issue in mbdavid#2493.

It seems like the current approach of checking the dictionary twice is
deliberate. That said, I don't believe reading from a dictionary
that may be in the process of being updated is actually safe to begin
with.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant