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

Default max_spare_txns on cpython implementation to 0 #375

Merged
merged 6 commits into from
Jan 9, 2025
Merged

Conversation

jnwatson
Copy link
Owner

@jnwatson jnwatson commented Jan 8, 2025

Also, don't create spare transactions if the above parameter is true.

This prevents hanging open transactions across forks. This is exhibited in a MDB_BAD_RSLOT error.

Fixes #346.

Also, don't create spare transactions if the above parameter is true.

This prevents hanging open transactions across forks. This is exhibited
in a MDB_BAD_RSLOT error.

Fixes #346.
Capture the PID at environment creation time and don't delete
transactions when we're not on that PID.  This will catch some common
accidental misuses.
@jnwatson jnwatson merged commit 4806170 into master Jan 9, 2025
130 of 131 checks passed
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.

MDB_BAD_RSLOT after fork due to spare txn
1 participant