[#1166] blobovniczatree: Handle blobovnicza's NoSpaceLeft error

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-06-06 19:01:25 +03:00
parent e7d479f4c2
commit 6cf512e574

View file

@ -2,6 +2,7 @@ package blobovniczatree
import (
"context"
"errors"
"path/filepath"
"time"
@ -108,7 +109,9 @@ func (i *putIterator) iterate(ctx context.Context, lvlPath string) (bool, error)
zap.String("error", err.Error()),
zap.String("trace_id", tracingPkg.GetTraceID(ctx)))
}
if errors.Is(err, blobovnicza.ErrNoSpace) {
i.AllFull = true
}
return false, nil
}