Alex Vanin
20de74a505
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
19 lines
653 B
Go
19 lines
653 B
Go
package meta
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/util/logicerr"
|
|
apistatus "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client/status"
|
|
)
|
|
|
|
// ErrObjectIsExpired is returned when the requested object's
|
|
// epoch is less than the current one. Such objects are considered
|
|
// as removed and should not be returned from the Storage Engine.
|
|
var ErrObjectIsExpired = logicerr.New("object is expired")
|
|
|
|
// IsErrRemoved checks if error returned by Shard Exists/Get/Put method
|
|
// corresponds to removed object.
|
|
func IsErrRemoved(err error) bool {
|
|
return errors.As(err, new(apistatus.ObjectAlreadyRemoved))
|
|
}
|