Sourced from redb's releases.
4.1.0
This release contains a large number of bug fixes discovered by AI coding agents
- Fix a bug where
MultimapValue::len()andis_empty()returned stale counts after consuming entries vianext_back().- Fix a bug where
restore_savepoint()used in a non-Immediatedurability transaction and when there are persistent savepoints newer than the one being restored, could fail withSavepointError::InvalidSavepoint, but the savepoint would actually be partially applied. The call now fails up front withSavepointError::ImmediateDurabilityRequired.- Fix a bug in
restore_savepoint()where modifications made earlier in the transaction might not be reverted.- Fix a bug where renaming a table that was already modified in the same transaction could cause the database to become corrupted.
- Fix a bug where calling
restore_savepoint()after modifying a table in the same transaction could cause the table to become corrupted in a future transaction.- Fix a panic when
delete_table()was called on a table that had been modified in the same transaction.- Fix a panic in
restore_savepoint()when passed aSavepointfrom a differentDatabase.SavepointError::InvalidSavepointis now returned instead.- Fix a bug where a transaction that created a persistent savepoint and was then aborted could cause the database file to grow excessively, until the
Databasewas dropped.- Fix a panic in
check_integrity()when called while another transaction is still alive.DatabaseError::TransactionInProgressis now returned instead.- Fix a bug where aborting a transaction that called
restore_savepoint()with a savepoint when a newer savepoint existed could cause database space to be leaked.- Fix a bug where aborting a transaction that called
restore_savepoint()would leave more recent savepoints invalid.- Improve performance when reading concurrently from multiple threads. Around 15% speedup on some benchmarks.
- Optimize cache usage, and general write performance. Around 1.5x speedup on some benchmarks.
- Optimize memory usage.
- Other performance optimizations.
4.0.0
- Implement
DroponAccessGuardMutandAccessGuardMutInPlace, which requires that these be dropped before theTablethey borrow from. This fixes a critical bug where the accessor could outlive theTable, and be dropped after the transaction had already committed. This could cause data loss due to the data in the accessor being written out after the transaction had already completed.- Remove
Legacytype. To migrate off theLegacytype, use theLegacytype in the 3.x release and copy the data to a table with plain tuples, before upgrading to the 4.x release.
Sourced from redb's changelog.
4.1.0 - 2026-04-19
This release contains a large number of bug fixes discovered by AI coding agents
- Fix a bug where
MultimapValue::len()andis_empty()returned stale counts after consuming entries vianext_back().- Fix a bug where
restore_savepoint()used in a non-Immediatedurability transaction and when there are persistent savepoints newer than the one being restored, could fail withSavepointError::InvalidSavepoint, but the savepoint would actually be partially applied. The call now fails up front withSavepointError::ImmediateDurabilityRequired.- Fix a bug in
restore_savepoint()where modifications made earlier in the transaction might not be reverted.- Fix a bug where renaming a table that was already modified in the same transaction could cause the database to become corrupted.
- Fix a bug where calling
restore_savepoint()after modifying a table in the same transaction could cause the table to become corrupted in a future transaction.- Fix a panic when
delete_table()was called on a table that had been modified in the same transaction.- Fix a panic in
restore_savepoint()when passed aSavepointfrom a differentDatabase.SavepointError::InvalidSavepointis now returned instead.- Fix a bug where a transaction that created a persistent savepoint and was then aborted could cause the database file to grow excessively, until the
Databasewas dropped.- Fix a panic in
check_integrity()when called while another transaction is still alive.DatabaseError::TransactionInProgressis now returned instead.- Fix a bug where aborting a transaction that called
restore_savepoint()with a savepoint when a newer savepoint existed could cause database space to be leaked.- Fix a bug where aborting a transaction that called
restore_savepoint()would leave more recent savepoints invalid.- Improve performance when reading concurrently from multiple threads. Around 15% speedup on some benchmarks.
- Optimize cache usage, and general write performance. Around 1.5x speedup on some benchmarks.
- Optimize memory usage.
- Other performance optimizations.
4.0.0 - 2026-04-02
- Implement
DroponAccessGuardMutandAccessGuardMutInPlace, which requires that these be dropped before theTablethey borrow from. This fixes a critical bug where the accessor could outlive theTable, and be dropped after the transaction had already committed. This could cause data loss due to the data in the accessor being written out after the transaction had already completed.- Remove
Legacytype. To migrate off theLegacytype, use theLegacytype in the 3.x release and copy the data to a table with plain tuples, before upgrading to the 4.x release.
6ed1f98
Bump version to 4.1.00a87cb7
Update changelog03966a5
Require callers of get_page to provide a PageHinta75927f
Remove some TODO commentsa39779b
Avoid allocating a page for a branch that will be immediately
merged6374134
Document that Table{,Multimap}Definition::new panic on empty namesba043e3
Avoid copying keys in leaf overwrite pathsf42c468
Fix MultimapValue::next_back() not decrementing remaining counter3756148
Clarify API contract for Key and Value traits4552372
Consolidate WriteTransaction savepoint lifecycle state