forked from TrueCloudLab/frostfs-node
[#1953] shard: Fix debug log messages
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
f8180447a1
commit
0371d15b2f
1 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ func (s *Shard) Delete(prm DeletePrm) (DeleteRes, error) {
|
||||||
|
|
||||||
res, err := s.metaBase.StorageID(sPrm)
|
res, err := s.metaBase.StorageID(sPrm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.log.Debug("can't get blobovniczaID from metabase",
|
s.log.Debug("can't get storage ID from metabase",
|
||||||
zap.Stringer("object", prm.addr[i]),
|
zap.Stringer("object", prm.addr[i]),
|
||||||
zap.String("error", err.Error()))
|
zap.String("error", err.Error()))
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ func (s *Shard) Delete(prm DeletePrm) (DeleteRes, error) {
|
||||||
s.decObjectCounterBy(physical, res.RawObjectsRemoved())
|
s.decObjectCounterBy(physical, res.RawObjectsRemoved())
|
||||||
s.decObjectCounterBy(logical, res.AvailableObjectsRemoved())
|
s.decObjectCounterBy(logical, res.AvailableObjectsRemoved())
|
||||||
|
|
||||||
for i := range prm.addr { // delete small object
|
for i := range prm.addr {
|
||||||
var delPrm common.DeletePrm
|
var delPrm common.DeletePrm
|
||||||
delPrm.Address = prm.addr[i]
|
delPrm.Address = prm.addr[i]
|
||||||
id := smalls[prm.addr[i]]
|
id := smalls[prm.addr[i]]
|
||||||
|
@ -80,7 +80,7 @@ func (s *Shard) Delete(prm DeletePrm) (DeleteRes, error) {
|
||||||
|
|
||||||
_, err = s.blobStor.Delete(delPrm)
|
_, err = s.blobStor.Delete(delPrm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.log.Debug("can't remove small object from blobStor",
|
s.log.Debug("can't remove object from blobStor",
|
||||||
zap.Stringer("object_address", prm.addr[i]),
|
zap.Stringer("object_address", prm.addr[i]),
|
||||||
zap.String("error", err.Error()))
|
zap.String("error", err.Error()))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue