[#211] blobstor: Remove global lock

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-25 14:30:48 +03:00 committed by Alex Vanin
parent 59f7cf9873
commit 53b114cf8b
5 changed files with 0 additions and 16 deletions

View file

@ -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