[#2064] blobovniczatree: Remove index too big log

There is no need to log about a situation which is expected.

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-11-29 08:49:06 +03:00 committed by fyrchik
parent 8a77b4638a
commit ae7b473768
3 changed files with 0 additions and 4 deletions

View file

@ -115,7 +115,6 @@ func (b *Blobovniczas) deleteObjectFromLevel(prm blobovnicza.DeletePrm, blzPath
// (Blobovniczas "after" the active one are empty anyway,
// and it's pointless to open them).
if u64FromHexString(filepath.Base(blzPath)) > active.ind {
b.log.Debug("index is too big", zap.String("path", blzPath))
return common.DeleteRes{}, logicerr.Wrap(apistatus.ObjectNotFound{})
}

View file

@ -108,7 +108,6 @@ func (b *Blobovniczas) getObjectFromLevel(prm blobovnicza.GetPrm, blzPath string
// (Blobovniczas "after" the active one are empty anyway,
// and it's pointless to open them).
if u64FromHexString(filepath.Base(blzPath)) > active.ind {
b.log.Debug("index is too big", zap.String("path", blzPath))
return common.GetRes{}, logicerr.Wrap(apistatus.ObjectNotFound{})
}

View file

@ -122,8 +122,6 @@ func (b *Blobovniczas) getRangeFromLevel(prm common.GetRangePrm, blzPath string,
// (Blobovniczas "after" the active one are empty anyway,
// and it's pointless to open them).
if u64FromHexString(filepath.Base(blzPath)) > active.ind {
b.log.Debug("index is too big", zap.String("path", blzPath))
return common.GetRangeRes{}, logicerr.Wrap(apistatus.ObjectNotFound{})
}