Fix rebase failures

This commit is contained in:
Abhishek Pandey 2024-01-26 14:42:55 -08:00
parent 5230e60b24
commit 9f68f379e7

View File

@ -391,17 +391,21 @@ func (col *lazyFetchCollection[C, I]) streamItems(ctx context.Context, errs *fau
// //
// If the data download fails for some reason other than deleted in // If the data download fails for some reason other than deleted in
// flight, we will still end up persisting a .meta file. This is // flight, we will still end up persisting a .meta file. This is
// fine however, since the next backup will overwrite it. // fine since the next backup will overwrite it.
// //
// If item is deleted in flight, we will end up with an orphaned // If item is deleted in flight, we will end up with an orphaned
// .meta file. The only impact here is storage bloat, which // .meta file. The only impact here is storage bloat, which
// is minimal. Other impact could be if we do an in-order restore // is minimal. Other impact could be if we do an in-order restore
// using a tree built from .meta files. We may have some .meta // using a tree built from .meta files. We may have some .meta
// files without corresponding .data files. // files without corresponding .data files.
if col.getAndAugment.supportsItemMetadata() {
dataFile += metadata.DataFileSuffix
metaFile := id + metadata.MetaFileSuffix
itemMeta, _, err := col.getAndAugment.getItemMetadata( itemMeta, _, err := col.getAndAugment.getItemMetadata(
ictx, ictx,
col.contains.container) col.contains.container)
if err != nil && !errors.Is(err, errMetadataFilesNotSupported) { if err != nil {
errs.AddRecoverable(ctx, clues.StackWC(ctx, err)) errs.AddRecoverable(ctx, clues.StackWC(ctx, err))
return return