Cloud migrations: include metadata returned by CMS in the index file (#90658)

This commit is contained in:
Bruno
2024-07-22 10:11:57 -03:00
committed by GitHub
parent b2766ece5e
commit 07685646a3
6 changed files with 12 additions and 6 deletions
@@ -524,7 +524,7 @@ func (s *Service) CreateSnapshot(ctx context.Context, signedInUser *user.SignedI
s.report(ctx, session, gmsclient.EventStartBuildingSnapshot, 0, nil)
start := time.Now()
err := s.buildSnapshot(ctx, signedInUser, initResp.MaxItemsPerPartition, snapshot)
err := s.buildSnapshot(ctx, signedInUser, initResp.MaxItemsPerPartition, initResp.Metadata, snapshot)
if err != nil {
s.log.Error("building snapshot", "err", err.Error())
// Update status to error with retries