Skip to content

Bump redb from 4.5.0 to 4.6.0 - #559

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/redb-4.6.0
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/redb-4.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 17, 2026

Copy link
Copy Markdown
Contributor

Bumps redb from 4.5.0 to 4.6.0.

Release notes

Sourced from redb's releases.

4.6.0

Minor improvements

  • A new database starts at 72 KiB instead of about 1 MiB, and grows as it is written to.

Bug fixes

  • Fix repair falling back to a commit slot that failed its checksum, which could open a damaged database as an empty one instead of returning StorageError::Corrupted.
  • commit() returns CommitError::TransactionPoisoned when a table opened in the transaction was leaked, for example with mem::forget(), instead of committing a corrupted database.
  • MultimapTable::insert() and MultimapTable::remove() poison the write transaction if the key or value type panics part way through, instead of leaving a transaction that commits a corrupted table.
  • Fix begin_read() on a SingleWriter or MultiWriter database failing with StorageError::Corrupted while an ExclusiveWriter open of the same file was being refused.
  • Fix compact() on a SingleWriter or MultiWriter database returning CompactionError::TransactionInProgress while a read-only ExclusiveWriter open of the same file was being refused.
  • When a lock on a SingleWriter or MultiWriter database cannot be released, later operations on that database return StorageError::PreviousIo until it is closed, which releases the lock. Before, the database kept working while the other processes sharing the file were blocked.
  • Fix a read-only open in SingleWriter or MultiWriter mode accepting a database that needs repair, instead of returning DatabaseError::RepairAborted, while a read-only ExclusiveWriter open of the same file was in progress.
  • Fix a refused read-only ExclusiveWriter open disturbing the SingleWriter or MultiWriter handles of the same file: try_begin_write() could return TransactionError::WouldBlock, a MultiWriter open DatabaseError::DatabaseAlreadyOpen, and closing the last handle could leave the database needing repair, so that read-only opens returned DatabaseError::RepairAborted.
  • Fix ReadOnlyDatabase::open() failing with DatabaseError::DatabaseAlreadyOpen beside another read-only handle, while a SingleWriter or MultiWriter open of the same file was being refused.
  • Fix a MultiWriter process aborting the next time its write transaction grew the file, after a write transaction in another process had grown it and then ended without a commit, because that process was killed or a panic dropped the transaction.
  • Fix check_integrity() returning Ok(false) for an undamaged database that had grown to exactly one full region, which is 4 GiB with the default settings.
  • Fix a read that was in progress when its database was closed returning data from a later commit, instead of completing or returning StorageError::DatabaseClosed. Closing now waits for the reads and writes in progress.
  • Fix check_integrity(), and opens that verify or repair, taking exponential time on a damaged B-tree whose pages are shared between several parents.
Changelog

Sourced from redb's changelog.

4.6.0 - 2026-11-13

Minor improvements

  • A new database starts at 72 KiB instead of about 1 MiB, and grows as it is written to.

Bug fixes

  • Fix repair falling back to a commit slot that failed its checksum, which could open a damaged database as an empty one instead of returning StorageError::Corrupted.
  • commit() returns CommitError::TransactionPoisoned when a table opened in the transaction was leaked, for example with mem::forget(), instead of committing a corrupted database.
  • MultimapTable::insert() and MultimapTable::remove() poison the write transaction if the key or value type panics part way through, instead of leaving a transaction that commits a corrupted table.
  • Fix begin_read() on a SingleWriter or MultiWriter database failing with StorageError::Corrupted while an ExclusiveWriter open of the same file was being refused.
  • Fix compact() on a SingleWriter or MultiWriter database returning CompactionError::TransactionInProgress while a read-only ExclusiveWriter open of the same file was being refused.
  • When a lock on a SingleWriter or MultiWriter database cannot be released, later operations on that database return StorageError::PreviousIo until it is closed, which releases the lock. Before, the database kept working while the other processes sharing the file were blocked.
  • Fix a read-only open in SingleWriter or MultiWriter mode accepting a database that needs repair, instead of returning DatabaseError::RepairAborted, while a read-only ExclusiveWriter open of the same file was in progress.
  • Fix a refused read-only ExclusiveWriter open disturbing the SingleWriter or MultiWriter handles of the same file: try_begin_write() could return TransactionError::WouldBlock, a MultiWriter open DatabaseError::DatabaseAlreadyOpen, and closing the last handle could leave the database needing repair, so that read-only opens returned DatabaseError::RepairAborted.
  • Fix ReadOnlyDatabase::open() failing with DatabaseError::DatabaseAlreadyOpen beside another read-only handle, while a SingleWriter or MultiWriter open of the same file was being refused.
  • Fix a MultiWriter process aborting the next time its write transaction grew the file, after a write transaction in another process had grown it and then ended without a commit, because that process was killed or a panic dropped the transaction.
  • Fix check_integrity() returning Ok(false) for an undamaged database that had grown to exactly one full region, which is 4 GiB with the default settings.
  • Fix a read that was in progress when its database was closed returning data from a later commit, instead of completing or returning StorageError::DatabaseClosed. Closing now waits for the reads and writes in progress.
  • Fix check_integrity(), and opens that verify or repair, taking exponential time on a damaged B-tree whose pages are shared between several parents.
Commits
  • 7e54679 Bump version to 4.6.0
  • 0138554 Update changelog
  • fdf26b7 Move the fixes that 4.x builds get into a 4.6.0 changelog section
  • 3e82eb8 Cap integrity verification's walk at the database's page count
  • a228a77 Wait for the reads and writes in progress before closing the backend
  • 5031358 Describe exactly one region's worth of space as one full region
  • ffc3032 Adopt the file's length when a peer's uncommitted growth left it longer
  • 11b9a33 Update vendored xxh3
  • 7547d0d Refuse an open before it takes what the handles beside it look at
  • 1ea02d9 Leave the consistent byte out of a read-only whole-file lock
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [redb](https://github.com/cberner/redb) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/cberner/redb/releases)
- [Changelog](https://github.com/cberner/redb/blob/master/CHANGELOG.md)
- [Commits](cberner/redb@v4.5.0...v4.6.0)

---
updated-dependencies:
- dependency-name: redb
  dependency-version: 4.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 17, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #563.

@dependabot dependabot Bot closed this Nov 23, 2026
@dependabot
dependabot Bot deleted the dependabot/cargo/redb-4.6.0 branch November 23, 2026 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants