fix(provider): return immediately when BatchForget flush fails

Signed-off-by: Jay2006sawant <jay242902@gmail.com>
This commit is contained in:
Jay2006sawant
2026-08-03 11:26:00 +05:30
parent 8ec4b22496
commit 46f5adb7a3
+1 -1
View File
@@ -384,7 +384,7 @@ func (urp *unifiedRepoProvider) BatchForget(ctx context.Context, snapshotIDs []s
err = bkRepo.Flush(ctx)
if err != nil {
errs = append(errs, errors.Wrap(err, "error to flush repo"))
return append(errs, errors.Wrap(err, "error to flush repo"))
}
log.Debug("Forget snapshot complete")