156ba85326
If an object has not been marked for removal by the GC in the current epoch yet but has already expired, respond with `ErrObjectNotFound` api status. Also, optimize shard iteration: a node must stop any iteration if the object is found but gonna be removed soon. All the checks are performed by the Metabase. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
8 lines
285 B
Go
8 lines
285 B
Go
package object
|
|
|
|
import "errors"
|
|
|
|
// 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 = errors.New("object is expired")
|