Skip to content

Commit

Permalink
fix merge conflict problems
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanmetin committed Nov 7, 2023
1 parent 4e2ad94 commit a14c838
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion base/commands/migration/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ func findMigrationInProgress(ctx context.Context, ci *hazelcast.ClientInternal)
if err != nil {
return mip, fmt.Errorf("finding migration in progress: %w", err)
}
m := r.(serialization.JSON)
rr, err := r.Get(0)
if err != nil {
return mip, fmt.Errorf("finding migration in progress: %w", err)
}
m := rr.(serialization.JSON)
if err = json.Unmarshal(m, &mip); err != nil {
return mip, fmt.Errorf("parsing migration in progress: %w", err)
}
Expand Down
1 change: 1 addition & 0 deletions base/commands/migration/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package migration

const (
StartQueueName = "__datamigration_start_queue"
EstimateQueueName = "__datamigration_estimate_queue"
StatusMapName = "__datamigration_migrations"
DebugLogsListPrefix = "__datamigration_debug_logs_"
CancelQueue = "__datamigration_cancel_queue"
Expand Down
2 changes: 1 addition & 1 deletion base/commands/migration/estimate.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Estimation usually ends within 15 seconds.`, banner))
if !paths.Exists(conf) {
return fmt.Errorf("migration config does not exist: %s", conf)
}
mID := MakeMigrationID()
mID := makeMigrationID()
stages, err := NewEstimateStages(ec.Logger(), mID, conf)
if err != nil {
return err
Expand Down

0 comments on commit a14c838

Please sign in to comment.