From e3f4e48d8724b9cbb0e133bc6e28b7b31ba7872b Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Sat, 5 Mar 2022 11:46:02 +0300 Subject: [PATCH] [#1175] Fix typo in error return docs Signed-off-by: Leonard Lyubich --- pkg/core/object/fmt.go | 4 ++-- pkg/local_object_storage/engine/lock.go | 2 +- pkg/local_object_storage/metabase/lock.go | 2 +- pkg/local_object_storage/shard/lock.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/core/object/fmt.go b/pkg/core/object/fmt.go index 48db014c..dec93d47 100644 --- a/pkg/core/object/fmt.go +++ b/pkg/core/object/fmt.go @@ -39,7 +39,7 @@ type cfg struct { type DeleteHandler interface { // 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. DeleteObjects(*addressSDK.Address, ...*addressSDK.Address) error } @@ -48,7 +48,7 @@ type DeleteHandler interface { type Locker interface { // 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). Lock(idCnr cid.ID, locker oid.ID, locked []oid.ID) error } diff --git a/pkg/local_object_storage/engine/lock.go b/pkg/local_object_storage/engine/lock.go index 8d38db99..63d084c5 100644 --- a/pkg/local_object_storage/engine/lock.go +++ b/pkg/local_object_storage/engine/lock.go @@ -16,7 +16,7 @@ var errLockFailed = errors.New("lock operation failed") // Lock marks objects as locked with another object. All objects from the // 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. func (e *StorageEngine) Lock(idCnr cid.ID, locker oid.ID, locked []oid.ID) error { diff --git a/pkg/local_object_storage/metabase/lock.go b/pkg/local_object_storage/metabase/lock.go index 565ce8b0..b71eb7a1 100644 --- a/pkg/local_object_storage/metabase/lock.go +++ b/pkg/local_object_storage/metabase/lock.go @@ -25,7 +25,7 @@ func bucketNameLockers(idCnr cid.ID) []byte { // Lock marks objects as locked with another object. All objects are from the // 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. func (db *DB) Lock(cnr cid.ID, locker oid.ID, locked []oid.ID) error { diff --git a/pkg/local_object_storage/shard/lock.go b/pkg/local_object_storage/shard/lock.go index 0ef06458..b8046211 100644 --- a/pkg/local_object_storage/shard/lock.go +++ b/pkg/local_object_storage/shard/lock.go @@ -10,7 +10,7 @@ import ( // Lock marks objects as locked with another object. All objects from the // 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. func (s *Shard) Lock(idCnr cid.ID, locker oid.ID, locked []oid.ID) error {