From ae7b473768ed03b95d0c3d247c701ed28b2d3329 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 29 Nov 2022 08:49:06 +0300 Subject: [PATCH] [#2064] blobovniczatree: Remove `index too big` log There is no need to log about a situation which is expected. Signed-off-by: Evgenii Stratonikov --- pkg/local_object_storage/blobstor/blobovniczatree/delete.go | 1 - pkg/local_object_storage/blobstor/blobovniczatree/get.go | 1 - pkg/local_object_storage/blobstor/blobovniczatree/get_range.go | 2 -- 3 files changed, 4 deletions(-) diff --git a/pkg/local_object_storage/blobstor/blobovniczatree/delete.go b/pkg/local_object_storage/blobstor/blobovniczatree/delete.go index e949f8d5..b7c291c4 100644 --- a/pkg/local_object_storage/blobstor/blobovniczatree/delete.go +++ b/pkg/local_object_storage/blobstor/blobovniczatree/delete.go @@ -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{}) } diff --git a/pkg/local_object_storage/blobstor/blobovniczatree/get.go b/pkg/local_object_storage/blobstor/blobovniczatree/get.go index b87f1be6..5522d18e 100644 --- a/pkg/local_object_storage/blobstor/blobovniczatree/get.go +++ b/pkg/local_object_storage/blobstor/blobovniczatree/get.go @@ -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{}) } diff --git a/pkg/local_object_storage/blobstor/blobovniczatree/get_range.go b/pkg/local_object_storage/blobstor/blobovniczatree/get_range.go index 40bb10e2..d121e22b 100644 --- a/pkg/local_object_storage/blobstor/blobovniczatree/get_range.go +++ b/pkg/local_object_storage/blobstor/blobovniczatree/get_range.go @@ -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{}) }