Skip to content

Commit

Permalink
Added missing states to ReplicaState (ROLE command)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcatanzariti authored Dec 2, 2023
1 parent 0c2f214 commit aa9fcf9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/commands/server_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1996,14 +1996,20 @@ pub struct ReplicaInfo {
#[derive(Deserialize, Debug)]
#[serde(rename_all = "lowercase")]
pub enum ReplicationState {
/// the instance is in handshake with its master
Handshake,
/// the instance needs to connect to its master
None,
/// the instance in not active
Connect,
/// the master-replica connection is in progress
Connecting,
/// the master and replica are trying to perform the synchronization
Sync,
/// the replica is online
Connected,
/// instance state is unknown
Unknown,
}

/// options for the [`shutdown`](ServerCommands::shutdown) command.
Expand Down

0 comments on commit aa9fcf9

Please sign in to comment.