diff --git a/cmd/neofs-cli/modules/control/shards_list.go b/cmd/neofs-cli/modules/control/shards_list.go index f6719d02..4d4eef63 100644 --- a/cmd/neofs-cli/modules/control/shards_list.go +++ b/cmd/neofs-cli/modules/control/shards_list.go @@ -108,7 +108,7 @@ func shardModeToString(m control.ShardMode) string { case control.ShardMode_READ_ONLY: return "read-only" case control.ShardMode_DEGRADED: - return "degraded" + return "degraded-read-write" case control.ShardMode_DEGRADED_READ_ONLY: return "degraded-read-only" default: diff --git a/cmd/neofs-cli/modules/control/shards_set_mode.go b/cmd/neofs-cli/modules/control/shards_set_mode.go index 625ec043..46c13bf8 100644 --- a/cmd/neofs-cli/modules/control/shards_set_mode.go +++ b/cmd/neofs-cli/modules/control/shards_set_mode.go @@ -19,7 +19,7 @@ const ( shardModeReadOnly = "read-only" shardModeReadWrite = "read-write" - shardModeDegraded = "degraded" + shardModeDegraded = "degraded-read-write" shardModeDegradedReadOnly = "degraded-read-only" ) diff --git a/pkg/local_object_storage/shard/mode/mode.go b/pkg/local_object_storage/shard/mode/mode.go index a2296361..b06920d2 100644 --- a/pkg/local_object_storage/shard/mode/mode.go +++ b/pkg/local_object_storage/shard/mode/mode.go @@ -10,8 +10,7 @@ const ( // DegradedReadOnly is a Mode value for shard that is set automatically // after a certain number of errors is encountered. It is the same as - // `mode.ReadOnly` but also enables fallback algorithms for getting object - // in case metabase is corrupted. + // `mode.Degraded` but also is read-only. DegradedReadOnly = Degraded | ReadOnly ) @@ -34,7 +33,7 @@ func (m Mode) String() string { case ReadOnly: return "READ_ONLY" case Degraded: - return "DEGRADED" + return "DEGRADED_READ_WRITE" case DegradedReadOnly: return "DEGRADED_READ_ONLY" }