mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-27 14:16:18 +00:00
feat: write manifests in background tasks (#3709)
* chore: truncate wip * feat: truncate and edit write manifest in background * refactor: wrap in manifest context * feat: alter write manifest in background * chore: fix compiler errors * feat: flush update manifest in background * feat: compaction update manifest in background * feat: set dropping state * feat: reset drop state * feat: check state before updating manifest * test: fix compaction test * refactor: rename method * chore: update comment * chore: discard state guard * refactor: use atomic cell to store state enum * chore: fix clippy * chore: update toml * chore: remove unused type alias * feat: check state after writing manifest * chore: address CR comments * chore: change status code * chore: Update src/mito2/src/region.rs Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com> * fix: executes applier --------- Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com>
This commit is contained in:
@@ -59,6 +59,7 @@ pub enum StatusCode {
|
||||
RegionNotFound = 4005,
|
||||
RegionAlreadyExists = 4006,
|
||||
RegionReadonly = 4007,
|
||||
/// Region is not in a proper state to handle specific request.
|
||||
RegionNotReady = 4008,
|
||||
// If mutually exclusive operations are reached at the same time,
|
||||
// only one can be executed, another one will get region busy.
|
||||
|
||||
Reference in New Issue
Block a user