-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reintroduce RoTxn::commit: fix database opening read-only database.
Opening of databases with Env::open_database() without previous Env in memory with a RoTxn lead to the following error: `Io(Os { code: 22, kind: InvalidInput, message: "Invalid argument" })` It's due to the fact that RoTxn are not commited so the env->me_numdbs cannot be updated and will be set to CORE_DB so 2. It can trigger from multi-process setup, read-only opening, closing write access, and re-opening from the same process. Thanks to @Kerollmops for the typo and review. Co-authored-by: Clément Renault <[email protected]>
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters