mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-01 09:48:20 +00:00
fix(ecstore): require durable decommission ledger format (#6871)
This commit is contained in:
@@ -1553,6 +1553,9 @@ pub enum ControlPlaneErrorCode {
|
||||
/// The peer answered but its storage/IAM layer is not initialized yet
|
||||
/// (legacy string form: "errServerNotInitialized").
|
||||
ControlPlaneErrorNotInitialized = 1,
|
||||
/// The peer rejected a control-plane request before changing durable state.
|
||||
/// error_info carries the actionable validation reason.
|
||||
ControlPlaneErrorInvalidArgument = 2,
|
||||
}
|
||||
impl ControlPlaneErrorCode {
|
||||
/// String value of the enum field names used in the ProtoBuf definition.
|
||||
@@ -1563,6 +1566,7 @@ impl ControlPlaneErrorCode {
|
||||
match self {
|
||||
Self::ControlPlaneErrorUnspecified => "CONTROL_PLANE_ERROR_UNSPECIFIED",
|
||||
Self::ControlPlaneErrorNotInitialized => "CONTROL_PLANE_ERROR_NOT_INITIALIZED",
|
||||
Self::ControlPlaneErrorInvalidArgument => "CONTROL_PLANE_ERROR_INVALID_ARGUMENT",
|
||||
}
|
||||
}
|
||||
/// Creates an enum from field names used in the ProtoBuf definition.
|
||||
@@ -1570,6 +1574,7 @@ impl ControlPlaneErrorCode {
|
||||
match value {
|
||||
"CONTROL_PLANE_ERROR_UNSPECIFIED" => Some(Self::ControlPlaneErrorUnspecified),
|
||||
"CONTROL_PLANE_ERROR_NOT_INITIALIZED" => Some(Self::ControlPlaneErrorNotInitialized),
|
||||
"CONTROL_PLANE_ERROR_INVALID_ARGUMENT" => Some(Self::ControlPlaneErrorInvalidArgument),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,9 @@ enum ControlPlaneErrorCode {
|
||||
// The peer answered but its storage/IAM layer is not initialized yet
|
||||
// (legacy string form: "errServerNotInitialized").
|
||||
CONTROL_PLANE_ERROR_NOT_INITIALIZED = 1;
|
||||
// The peer rejected a control-plane request before changing durable state.
|
||||
// error_info carries the actionable validation reason.
|
||||
CONTROL_PLANE_ERROR_INVALID_ARGUMENT = 2;
|
||||
}
|
||||
|
||||
message PingRequest {
|
||||
|
||||
Reference in New Issue
Block a user