Skip to content

Conversation

@Frando
Copy link
Member

@Frando Frando commented Sep 30, 2025

Description

The recently released redb v3 has incompatible changes to the database format. The recommended upgrade procedure is to upgrade the database with Database::upgrade on redb v2.6+. The upgrade has to be done on redb v2, not v3. See https://github.com/cberner/redb/blob/master/CHANGELOG.md#removes-support-for-file-format-v2.

This updates redb to 2.6 and performs the upgrade when opening the database. Calling upgrade on an already upgraded database is a no-op.

With this merged in the next release, we can then update redb to v3 in the version after.

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

@github-actions
Copy link

github-actions bot commented Sep 30, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-docs/pr/69/docs/iroh_docs/

Last updated: 2025-10-14T10:23:47Z

@n0bot n0bot bot added this to iroh Sep 30, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Sep 30, 2025
@dignifiedquire
Copy link
Contributor

@Frando can we get this in?

@Frando Frando force-pushed the Frando/upgrade-redb-format branch from d91181f to 95c7d72 Compare October 14, 2025 10:21
@Frando
Copy link
Member Author

Frando commented Oct 14, 2025

rebased

@Frando Frando enabled auto-merge (squash) October 14, 2025 10:22
@Frando Frando merged commit b257606 into main Oct 14, 2025
25 checks passed
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in iroh Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants