cubefs/blobstore/common/errors/proxy.go
yanghonggang d821466a1f fix(blobstore): rename CodeNoAvaliableVolume to CodeNoCodemodeVolume
The previous error code 'CodeNoAvaliableVolume' (801) contained a typo
and was semantically ambiguous. To avoid confusion with the similarly
named 'CodeNoAvailableVolume' (917) from Clustermgr, it has been renamed
to 'CodeNoCodemodeVolume'.

Fixes: #3790

Signed-off-by: yanghonggang <yanghonggang_yewu@cmss.chinamobile.com>
2025-05-13 14:50:05 +08:00

28 lines
874 B
Go

// Copyright 2022 The CubeFS Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
// implied. See the License for the specific language governing
// permissions and limitations under the License.
package errors
const (
CodeNoCodemodeVolume = 801
CodeAllocBidFromCm = 802
CodeClusterIDNotMatch = 803
)
var (
ErrNoCodemodeVolume = Error(CodeNoCodemodeVolume)
ErrAllocBidFromCm = Error(CodeAllocBidFromCm)
ErrClusterIDNotMatch = Error(CodeClusterIDNotMatch)
)