[#1175] Fix typo in error return docs
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
d92b1d1bf8
commit
e3f4e48d87
4 changed files with 5 additions and 5 deletions
|
@ -39,7 +39,7 @@ type cfg struct {
|
||||||
type DeleteHandler interface {
|
type DeleteHandler interface {
|
||||||
// DeleteObjects objects places objects to removal queue.
|
// DeleteObjects objects places objects to removal queue.
|
||||||
//
|
//
|
||||||
// Returns apistatus.IrregularObjectLock if at least one object
|
// Returns apistatus.LockNonRegularObject if at least one object
|
||||||
// is locked.
|
// is locked.
|
||||||
DeleteObjects(*addressSDK.Address, ...*addressSDK.Address) error
|
DeleteObjects(*addressSDK.Address, ...*addressSDK.Address) error
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ type DeleteHandler interface {
|
||||||
type Locker interface {
|
type Locker interface {
|
||||||
// Lock list of objects as locked by locker in the specified container.
|
// Lock list of objects as locked by locker in the specified container.
|
||||||
//
|
//
|
||||||
// Returns apistatus.IrregularObjectLock if at least object in locked
|
// Returns apistatus.LockNonRegularObject if at least object in locked
|
||||||
// list is irregular (not type of REGULAR).
|
// list is irregular (not type of REGULAR).
|
||||||
Lock(idCnr cid.ID, locker oid.ID, locked []oid.ID) error
|
Lock(idCnr cid.ID, locker oid.ID, locked []oid.ID) error
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ var errLockFailed = errors.New("lock operation failed")
|
||||||
// Lock marks objects as locked with another object. All objects from the
|
// Lock marks objects as locked with another object. All objects from the
|
||||||
// specified container.
|
// specified container.
|
||||||
//
|
//
|
||||||
// Allows locking regular objects only (otherwise returns apistatus.IrregularObjectLock).
|
// Allows locking regular objects only (otherwise returns apistatus.LockNonRegularObject).
|
||||||
//
|
//
|
||||||
// Locked list should be unique. Panics if it is empty.
|
// Locked list should be unique. Panics if it is empty.
|
||||||
func (e *StorageEngine) Lock(idCnr cid.ID, locker oid.ID, locked []oid.ID) error {
|
func (e *StorageEngine) Lock(idCnr cid.ID, locker oid.ID, locked []oid.ID) error {
|
||||||
|
|
|
@ -25,7 +25,7 @@ func bucketNameLockers(idCnr cid.ID) []byte {
|
||||||
// Lock marks objects as locked with another object. All objects are from the
|
// Lock marks objects as locked with another object. All objects are from the
|
||||||
// specified container.
|
// specified container.
|
||||||
//
|
//
|
||||||
// Allows locking regular objects only (otherwise returns apistatus.IrregularObjectLock).
|
// Allows locking regular objects only (otherwise returns apistatus.LockNonRegularObject).
|
||||||
//
|
//
|
||||||
// Locked list should be unique. Panics if it is empty.
|
// Locked list should be unique. Panics if it is empty.
|
||||||
func (db *DB) Lock(cnr cid.ID, locker oid.ID, locked []oid.ID) error {
|
func (db *DB) Lock(cnr cid.ID, locker oid.ID, locked []oid.ID) error {
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
// Lock marks objects as locked with another object. All objects from the
|
// Lock marks objects as locked with another object. All objects from the
|
||||||
// specified container.
|
// specified container.
|
||||||
//
|
//
|
||||||
// Allows locking regular objects only (otherwise returns apistatus.IrregularObjectLock).
|
// Allows locking regular objects only (otherwise returns apistatus.LockNonRegularObject).
|
||||||
//
|
//
|
||||||
// Locked list should be unique. Panics if it is empty.
|
// Locked list should be unique. Panics if it is empty.
|
||||||
func (s *Shard) Lock(idCnr cid.ID, locker oid.ID, locked []oid.ID) error {
|
func (s *Shard) Lock(idCnr cid.ID, locker oid.ID, locked []oid.ID) error {
|
||||||
|
|
Loading…
Reference in a new issue