Skip to content

Commit

Permalink
feat: add open candidate region state
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Nov 16, 2023
1 parent bd1a545 commit 9620c77
Show file tree
Hide file tree
Showing 3 changed files with 486 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/meta-srv/src/procedure/region_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ use store_api::storage::RegionId;
use self::migration_start::RegionMigrationStart;
use crate::error::{Error, Result};
use crate::procedure::utils::region_lock_key;
use crate::service::mailbox::MailboxRef;

/// It's shared in each step and available even after recovering.
///
Expand Down Expand Up @@ -71,12 +72,14 @@ pub struct VolatileContext {}
/// The context of procedure execution.
pub struct Context {
table_metadata_manager: TableMetadataManagerRef,
mailbox: MailboxRef,
server_addr: String,
}

impl Context {
/// Returns address of meta server.
pub fn server_addr(&self) -> &str {
todo!()
&self.server_addr
}
}

Expand Down
Loading

0 comments on commit 9620c77

Please sign in to comment.