forked from TrueCloudLab/frostfs-node
[#1687] *: Perform go fmt
using go v1.19
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
37ab26bfa9
commit
30341f2192
25 changed files with 114 additions and 112 deletions
|
@ -141,9 +141,9 @@ func (e *StorageEngine) execIfNotBlocked(op func() error) error {
|
|||
}
|
||||
|
||||
// sets the flag of blocking execution of all data operations according to err:
|
||||
// * err != nil, then blocks the execution. If exec wasn't blocked, calls close method
|
||||
// - err != nil, then blocks the execution. If exec wasn't blocked, calls close method
|
||||
// (if err == errClosed => additionally releases pools and does not allow to resume executions).
|
||||
// * otherwise, resumes execution. If exec was blocked, calls open method.
|
||||
// - otherwise, resumes execution. If exec was blocked, calls open method.
|
||||
//
|
||||
// Can be called concurrently with exec. In this case it waits for all executions to complete.
|
||||
func (e *StorageEngine) setBlockExecErr(err error) error {
|
||||
|
|
|
@ -110,10 +110,10 @@ func (e *StorageEngine) inhume(prm InhumePrm) (InhumeRes, error) {
|
|||
}
|
||||
|
||||
// Returns:
|
||||
// 0 - fail
|
||||
// 1 - object locked
|
||||
// 2 - lock object removal
|
||||
// 3 - ok
|
||||
// - 0: fail
|
||||
// - 1: object locked
|
||||
// - 2: lock object removal
|
||||
// - 3: ok
|
||||
func (e *StorageEngine) inhumeAddr(addr oid.Address, prm shard.InhumePrm, checkExists bool) (status uint8) {
|
||||
root := false
|
||||
var errLocked apistatus.ObjectLocked
|
||||
|
|
|
@ -43,9 +43,9 @@ func (e *StorageEngine) lock(idCnr cid.ID, locker oid.ID, locked []oid.ID) error
|
|||
}
|
||||
|
||||
// Returns:
|
||||
// 0 - fail
|
||||
// 1 - locking irregular object
|
||||
// 2 - ok
|
||||
// - 0: fail
|
||||
// - 1: locking irregular object
|
||||
// - 2: ok
|
||||
func (e *StorageEngine) lockSingle(idCnr cid.ID, locker, locked oid.ID, checkExists bool) (status uint8) {
|
||||
// code is pretty similar to inhumeAddr, maybe unify?
|
||||
root := false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue