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

chore: remove unused config_id from RaftConfig #16902

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Nov 21, 2024

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

Summary

chore: remove unused config_id from RaftConfig

config_id is used for separate sled-db key spaces for parallel tests.
Since sled db is removed, this config_id is useless.

chore: optimize meta-service initialization

Try initialize instead of check is_open flag.
This flag may not be accurate: the raft storage is opend but no
initialization is done yet.

And remove trait Opened and refactor related struct names

Tests

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

Type of change

  • Other

Related Issues


This change is Reviewable

@github-actions github-actions bot added the pr-chore this PR only has small changes that no need to record, like coding styles. label Nov 21, 2024
@drmingdrmer drmingdrmer force-pushed the 173-refine-initialize branch from 43a3fec to 59fe798 Compare November 21, 2024 10:13
@drmingdrmer drmingdrmer marked this pull request as ready for review November 21, 2024 10:46
Try initialize instead of check `is_open` flag.
This flag may not be accurate: the raft storage is opend but no
initialization is done yet.

And remove trait `Opened` and refactor related struct names
`config_id` is used for separate sled-db key spaces for parallel tests.
Since sled db is removed, this `config_id` is useless.
@drmingdrmer drmingdrmer force-pushed the 173-refine-initialize branch from 59fe798 to 86857d9 Compare November 21, 2024 13:09
@drmingdrmer drmingdrmer merged commit 110437a into databendlabs:main Nov 21, 2024
72 checks passed
@drmingdrmer drmingdrmer deleted the 173-refine-initialize branch November 21, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-chore this PR only has small changes that no need to record, like coding styles.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant