forked from TrueCloudLab/frostfs-node
[#211] blobstor: Remove global lock
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
59f7cf9873
commit
53b114cf8b
5 changed files with 0 additions and 16 deletions
|
@ -22,9 +22,6 @@ type DeleteBigRes struct{}
|
|||
//
|
||||
// Returns ErrObjectNotFound if there is no object to delete.
|
||||
func (b *BlobStor) DeleteBig(prm *DeleteBigPrm) (*DeleteBigRes, error) {
|
||||
b.mtx.Lock()
|
||||
defer b.mtx.Unlock()
|
||||
|
||||
err := b.fsTree.delete(prm.addr)
|
||||
if errors.Is(err, errFileNotFound) {
|
||||
err = ErrObjectNotFound
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue