Skip to content

libsql: Fix metadata handling#2149

Merged
penberg merged 3 commits intomainfrom
fix-metadata-handling
Aug 26, 2025
Merged

libsql: Fix metadata handling#2149
penberg merged 3 commits intomainfrom
fix-metadata-handling

Conversation

@penberg
Copy link
Copy Markdown
Collaborator

@penberg penberg commented Aug 26, 2025

Fix metadata handling to ensure that we don't have inconsistent metadata locally.

@penberg penberg enabled auto-merge August 26, 2025 10:40
If we fail to read the metadata file, we must return an error. Resetting
the metadata leads to inconsistent state because you have no way to tell
what the database represents.
If server returns zero as generation, lets return an error from
get_remote_info() instead of making metadata inconsistent.
@penberg penberg force-pushed the fix-metadata-handling branch from 630c55f to 4d9247b Compare August 26, 2025 11:21
@penberg penberg added this pull request to the merge queue Aug 26, 2025
Merged via the queue into main with commit 0778657 Aug 26, 2025
19 checks passed
@penberg penberg deleted the fix-metadata-handling branch August 26, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants