mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-29 00:01:42 +00:00
chore(deps): bump redb from 4.4.0 to 4.5.0 (#4702)
Bumps [redb](https://github.com/cberner/redb) from 4.4.0 to 4.5.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cberner/redb/releases">redb's releases</a>.</em></p> <blockquote> <h2>4.5.0</h2> <h3>Multi-process support</h3> <p>Database files cannot be shared between processes using these modes and processes using the <code>experimental-multiprocess</code> feature of redb 4.3 or 4.4. Their locking is incompatible, and 4.5 can't detect the older processes.</p> <ul> <li>Add <code>Builder::set_concurrency_mode()</code>, which takes a <code>ConcurrencyMode</code> configuring how processes may share the database.</li> <li><code>ConcurrencyMode::ExclusiveWriter</code> (the default) locks the whole file, as earlier versions do.</li> <li><code>ConcurrencyMode::SingleWriter</code> allows one process to write, and any number of processes may open the database read-only.</li> <li><code>ConcurrencyMode::MultiWriter</code> allows any number of processes to open the database for writing, one write transaction at a time, and any number may open it read-only.</li> </ul> <h3>New features</h3> <ul> <li>Add <code>Builder::open_read_only_with_backend()</code> to open a read-only database from a storage backend.</li> <li>Add <code>Builder::set_check_integrity_on_open()</code>, which verifies the whole file on every <code>open()</code> instead of trusting the state recorded by a clean shutdown.</li> <li>Add <code>ReadOnlyDatabase::close()</code>, which releases the file and its locks without waiting for the read transactions opened from the database to be dropped.</li> <li>Add <code>Database::close()</code>, which closes the database as dropping it does, but returns any error rather than ignoring it.</li> <li>Add <code>Database::try_begin_write()</code>, which returns <code>TransactionError::WouldBlock</code> instead of waiting for an in-progress write transaction to finish.</li> </ul> <h3>Performance</h3> <ul> <li>Operations on tables with <code>&str</code> or <code>String</code> keys are faster.</li> </ul> <h3>Deprecations</h3> <ul> <li><code>Builder::create_file()</code> is deprecated; use <code>Builder::create_with_backend(FileBackend::new(file)?)</code> instead.</li> <li><code>WriteTransaction::print_allocated_page_debug()</code> is deprecated. It is an internal debugging aid, present only in debug builds.</li> </ul> <h3>Bug fixes</h3> <ul> <li><code>open()</code> reports a malformed allocator state as <code>StorageError::Corrupted</code> instead of panicking.</li> <li>Repair and <code>check_integrity()</code> verify the trees kept by persistent savepoints, which were not checked before.</li> <li>Fix <code>cache_stats()</code>, with the <code>cache_metrics</code> feature, panicking in debug builds or returning a <code>write_misses()</code> near <code>u64::MAX</code> in release builds when called while another thread is writing.</li> <li>Repair, <code>check_integrity()</code>, and <code>commit()</code> report some forms of file corruption as <code>StorageError::Corrupted</code> instead of panicking. This cannot occur in normal operation, and only effects database which were externally modified.</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/cberner/redb/blob/master/CHANGELOG.md">redb's changelog</a>.</em></p> <blockquote> <h2>4.5.0 - 2026-11-05</h2> <h3>Multi-process support</h3> <p>Database files cannot be shared between processes using these modes and processes using the <code>experimental-multiprocess</code> feature of redb 4.3 or 4.4. Their locking is incompatible, and 4.5 can't detect the older processes.</p> <ul> <li>Add <code>Builder::set_concurrency_mode()</code>, which takes a <code>ConcurrencyMode</code> configuring how processes may share the database.</li> <li><code>ConcurrencyMode::ExclusiveWriter</code> (the default) locks the whole file, as earlier versions do.</li> <li><code>ConcurrencyMode::SingleWriter</code> allows one process to write, and any number of processes may open the database read-only.</li> <li><code>ConcurrencyMode::MultiWriter</code> allows any number of processes to open the database for writing, one write transaction at a time, and any number may open it read-only.</li> </ul> <h3>New features</h3> <ul> <li>Add <code>Builder::open_read_only_with_backend()</code> to open a read-only database from a storage backend.</li> <li>Add <code>Builder::set_check_integrity_on_open()</code>, which verifies the whole file on every <code>open()</code> instead of trusting the state recorded by a clean shutdown.</li> <li>Add <code>ReadOnlyDatabase::close()</code>, which releases the file and its locks without waiting for the read transactions opened from the database to be dropped.</li> <li>Add <code>Database::close()</code>, which closes the database as dropping it does, but returns any error rather than ignoring it.</li> <li>Add <code>Database::try_begin_write()</code>, which returns <code>TransactionError::WouldBlock</code> instead of waiting for an in-progress write transaction to finish.</li> </ul> <h3>Performance</h3> <ul> <li>Operations on tables with <code>&str</code> or <code>String</code> keys are faster.</li> </ul> <h3>Deprecations</h3> <ul> <li><code>Builder::create_file()</code> is deprecated; use <code>Builder::create_with_backend(FileBackend::new(file)?)</code> instead.</li> <li><code>WriteTransaction::print_allocated_page_debug()</code> is deprecated. It is an internal debugging aid, present only in debug builds.</li> </ul> <h3>Bug fixes</h3> <ul> <li><code>open()</code> reports a malformed allocator state as <code>StorageError::Corrupted</code> instead of panicking.</li> <li>Repair and <code>check_integrity()</code> verify the trees kept by persistent savepoints, which were not checked before.</li> <li>Fix <code>cache_stats()</code>, with the <code>cache_metrics</code> feature, panicking in debug builds or returning a <code>write_misses()</code> near <code>u64::MAX</code> in release builds when called while another thread is writing.</li> <li>Repair, <code>check_integrity()</code>, and <code>commit()</code> report some forms of file corruption as <code>StorageError::Corrupted</code> instead of panicking. This cannot occur in normal operation, and only effects database which were externally modified.</li> </ul> <h2>redb-derive 0.2.0 - 2026-10-13</h2> <ul> <li>Fix <code>#[derive(Value)]</code> and <code>#[derive(Key)]</code> failing to compile on structs whose lifetimes are named <code>'a</code> or <code>'b</code>; the generated implementations no longer shadow the struct's lifetimes.</li> <li>Fix the derived implementations calling inherent methods named <code>fixed_width</code>, <code>from_bytes</code>, <code>as_bytes</code>, or <code>type_name</code> on field types, instead of the <code>Value</code> trait methods. The generated code now uses fully qualified paths, and no longer requires the <code>Value</code> and <code>Key</code> traits to be in scope at the derive site.</li> <li>Add <code>#[redb(crate = "...")]</code> to name the crate the implementations are generated for, when redb is renamed or present in several versions. Structs with fields require redb 3.0+.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/cberner/redb/commit/96ce31fe5cafcf735425a02f1781487a4287e2de"><code>96ce31f</code></a> Bump version to 4.5.0</li> <li><a href="https://github.com/cberner/redb/commit/9ee24057313245ba1ed76a1b13481ce4e161c9fb"><code>9ee2405</code></a> Update changelog</li> <li><a href="https://github.com/cberner/redb/commit/7ad68a31050802353035ec83dd32e9eb591176ae"><code>7ad68a3</code></a> redb-python: the README no longer says write transactions take turns</li> <li><a href="https://github.com/cberner/redb/commit/17a28fa017c2aeb36d5b1332daf474bf3304d159"><code>17a28fa</code></a> redb-python: leaving <code>with db:</code> keeps the exception that is propagating</li> <li><a href="https://github.com/cberner/redb/commit/58a001d18482ea559f307635798703d1a98e2168"><code>58a001d</code></a> Leave development files out of the crates.io package and the Python sdist</li> <li><a href="https://github.com/cberner/redb/commit/fffa5fa93ddc8b932d20d6652dc212b608c586d7"><code>fffa5fa</code></a> redb-python: Ctrl-C interrupts a begin_write() waiting for another writer</li> <li><a href="https://github.com/cberner/redb/commit/893a1be8e4b5ac390b00e4026fd3bdc1f20b48c3"><code>893a1be</code></a> Add Database::try_begin_write(), which returns WouldBlock rather than waiting</li> <li><a href="https://github.com/cberner/redb/commit/7b70c6942d1da7c8c9d1521acc5631912d994b47"><code>7b70c69</code></a> redb-python: both databases close through redb's close(), in one helper</li> <li><a href="https://github.com/cberner/redb/commit/77258c3eabd2e5227baf7c3fe13d1cf9499914ce"><code>77258c3</code></a> redb-python: reads after close are left to redb, without check_open()</li> <li><a href="https://github.com/cberner/redb/commit/ff4a789bdd926c2544917d1d82866774654e245f"><code>ff4a789</code></a> redb-python: entering a closed database raises DatabaseClosed</li> <li>Additional commits viewable in <a href="https://github.com/cberner/redb/compare/v4.4.0...v4.5.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Floris Bruynooghe <flub@n0.computer>
This commit is contained in:
co-authored by
Floris Bruynooghe
parent
2e74408863
commit
40833b58fb
Generated
+2
-2
@@ -3908,9 +3908,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "redb"
|
||||
version = "4.4.0"
|
||||
version = "4.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "39178e0a867f9e3eaa6292a4ab1dd3613f2519c5b564341e1e7b29b270736cc4"
|
||||
checksum = "8b317ef681e18f6091efbfab532eaf924a135c492d9d0299d0fbfae07e92a39b"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user