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

refactor: change DatabaseInfo.meta to SeqV<DatabaseMeta> #16295

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Aug 20, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

refactor: change DatabaseInfo.meta to SeqV<DatabaseMeta>

This commit updates DatabaseInfo.meta from DatabaseMeta to
SeqV<DatabaseMeta> to store the sequence number alongside the
instance. This change improves code clarity and reduces the potential
for errors.

chore: DatabaseIdent does not need to be serde
feat: make Id a prost::Message so that it can be used a meta-service Value

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • New Feature (non-breaking change which adds functionality)

  • Refactoring

Related Issues


This change is Reviewable

@github-actions github-actions bot added the pr-refactor this PR changes the code base without new features or bugfix label Aug 20, 2024
@drmingdrmer drmingdrmer force-pushed the 111-id-u64-prost-message branch from 1150d64 to 985264b Compare August 20, 2024 13:10
@drmingdrmer drmingdrmer marked this pull request as ready for review August 20, 2024 14:39
This commit updates `DatabaseInfo.meta` from `DatabaseMeta` to
`SeqV<DatabaseMeta>` to store the sequence number alongside the
instance. This change improves code clarity and reduces the potential
for errors.
@drmingdrmer drmingdrmer force-pushed the 111-id-u64-prost-message branch from 985264b to a6e2cb4 Compare August 20, 2024 16:00
@drmingdrmer drmingdrmer merged commit 858362d into databendlabs:main Aug 21, 2024
69 checks passed
@drmingdrmer drmingdrmer deleted the 111-id-u64-prost-message branch August 21, 2024 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-refactor this PR changes the code base without new features or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant