Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the namespace resolver to extract namespace #1465

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

avinassh
Copy link
Member

@avinassh avinassh commented Jun 11, 2024

Storage server requires namespace UUID to operate. In the WALManager we do not have access to the namespace, so this patch extracts the namespace from the db_path

The large diff is due to I moved NamespaceName from libsql-wal to libsql-sys so that libsql-storage also can use it. Or else I could copy the resolver method https://github.com/tursodatabase/libsql/blob/7ebe45b52/libsql-server/src/lib.rs#L672-L684 inside libsql-storage and use that.

@avinassh avinassh force-pushed the ss-namespace branch 2 times, most recently from 1a1b552 to 7ebe45b Compare June 11, 2024 11:28
@avinassh avinassh marked this pull request as ready for review June 11, 2024 11:46
@avinassh avinassh requested review from LucioFranco and MarinPostma and removed request for LucioFranco June 11, 2024 11:55
Copy link
Collaborator

@MarinPostma MarinPostma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quick comment: do not assume that NamespaceName is an Uuid
it can be anything.

@avinassh avinassh added this pull request to the merge queue Jun 14, 2024
Merged via the queue into tursodatabase:main with commit fbce426 Jun 14, 2024
17 checks passed
@avinassh avinassh deleted the ss-namespace branch June 14, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants