+4
-1
src/manifest.go
+4
-1
src/manifest.go
···
350
350
wg := sync.WaitGroup{}
351
351
ch := make(chan error, len(extManifest.Contents))
352
352
for name, entry := range extManifest.Contents {
353
-
if entry.GetType() == Type_ExternalFile {
353
+
// Upload external entries (those that were decided as ineligible for being stored inline).
354
+
// If the entry in the original manifest is already an external reference, there's no need
355
+
// to externalize it (and no way for us to do so, since the entry only contains the blob name).
356
+
if entry.GetType() == Type_ExternalFile && manifest.Contents[name].GetType() == Type_InlineFile {
354
357
wg.Go(func() {
355
358
err := backend.PutBlob(ctx, string(entry.Data), manifest.Contents[name].Data)
356
359
if err != nil {