Skip to content

Commit

Permalink
Added the suggested changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-kurhade-yb committed Feb 6, 2025
1 parent f13f865 commit f15fdb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yb-voyager/cmd/assessMigrationCommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ func packAndSendAssessMigrationPayload(status string, errMsg string) {
obfuscatedIssues = append(obfuscatedIssues, obfuscatedIssue)
}

var sizingAssessmentReport callhome.SizingCallhome
var callhomeSizingAssessment callhome.SizingCallhome
if assessmentReport.Sizing != nil {
sizingRecommedation := &assessmentReport.Sizing.SizingRecommendation
sizingAssessmentReport = callhome.SizingCallhome{
callhomeSizingAssessment = callhome.SizingCallhome{
NumColocatedTables: len(sizingRecommedation.ColocatedTables),
ColocatedReasoning: sizingRecommedation.ColocatedReasoning,
NumShardedTables: len(sizingRecommedation.ShardedTables),
Expand All @@ -205,7 +205,7 @@ func packAndSendAssessMigrationPayload(status string, errMsg string) {
assessPayload := callhome.AssessMigrationPhasePayload{
PayloadVersion: callhome.ASSESS_MIGRATION_CALLHOME_PAYLOAD_VERSION,
TargetDBVersion: assessmentReport.TargetDBVersion,
Sizing: &sizingAssessmentReport,
Sizing: &callhomeSizingAssessment,
MigrationComplexity: assessmentReport.MigrationComplexity,
MigrationComplexityExplanation: assessmentReport.MigrationComplexityExplanation,
SchemaSummary: callhome.MarshalledJsonString(schemaSummaryCopy),
Expand Down

0 comments on commit f15fdb5

Please sign in to comment.