Skip to content

feat: upgrade redb to v3 compatible format#69

Merged
Frando merged 1 commit into
mainfrom
Frando/upgrade-redb-format
Oct 14, 2025
Merged

feat: upgrade redb to v3 compatible format#69
Frando merged 1 commit into
mainfrom
Frando/upgrade-redb-format

Conversation

@Frando

@Frando Frando commented Sep 30, 2025

Copy link
Copy Markdown
Member

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

github-actions Bot commented Sep 30, 2025

Copy link
Copy Markdown

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
Copy Markdown
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

Frando commented Oct 14, 2025

Copy link
Copy Markdown
Member Author

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.

2 participants