Commit 68fb600
authored
refactor(meta): adopt external crate for shared state machine logic (#17609)
* refactor(meta): adopt `databendlabs/map-api` crate for shared state machine logic
This commit replaces the internal map API implementation with the
external crate `databendlabs/map-api`.
### Context:
In the future, the meta-service codebase will be shared across two main
products:
1. A Raft-based meta-service.
2. An S3-based meta-service.
The state machine logic for these services is largely identical and
should be effectively shared to maximize code reuse and maintainability.
Using the `databendlabs/map-api` crate facilitates this shared
implementation.
* refactor(meta): adopt `databendlabs/watcher` crate for shared state machine logic1 parent 0389734 commit 68fb600
File tree
65 files changed
+96
-3102
lines changed- src/meta
- map-api
- src
- expirable
- impls
- marked
- seq_value
- raft-store
- src
- leveled_store
- leveled_map
- marked
- sm_v003
- service
- src
- api/grpc
- meta_service
- types
- src
- seq_value
- watcher
- src
- dispatch
- watch_stream
- tests/it
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
65 files changed
+96
-3102
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| |||
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | | - | |
111 | 109 | | |
112 | 110 | | |
113 | 111 | | |
| |||
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
147 | | - | |
148 | 145 | | |
149 | 146 | | |
150 | 147 | | |
151 | 148 | | |
152 | 149 | | |
153 | 150 | | |
154 | | - | |
155 | 151 | | |
156 | 152 | | |
157 | 153 | | |
| |||
359 | 355 | | |
360 | 356 | | |
361 | 357 | | |
| 358 | + | |
362 | 359 | | |
363 | 360 | | |
364 | 361 | | |
| |||
514 | 511 | | |
515 | 512 | | |
516 | 513 | | |
| 514 | + | |
517 | 515 | | |
518 | 516 | | |
519 | 517 | | |
| |||
634 | 632 | | |
635 | 633 | | |
636 | 634 | | |
| 635 | + | |
637 | 636 | | |
638 | 637 | | |
639 | 638 | | |
| |||
642 | 641 | | |
643 | 642 | | |
644 | 643 | | |
| 644 | + | |
645 | 645 | | |
This file was deleted.
0 commit comments