Skip to content

Commit

Permalink
feat(v2 upgrade/scheduler): update replica scheduler codes
Browse files Browse the repository at this point in the history
Update replica scheduler codes due to the changes in APIs.

Longhorn 9104

Signed-off-by: Derek Su <[email protected]>
  • Loading branch information
derekbit committed Nov 22, 2024
1 parent f7c127b commit 3b710be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/replica_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ func (rcs *ReplicaScheduler) isFailedReplicaReusable(r *longhorn.Replica, v *lon
return false, nil
}

im, err := rcs.ds.GetInstanceManagerByInstanceRO(r)
im, err := rcs.ds.GetInstanceManagerByInstanceRO(r, false)
if err != nil {
logrus.Errorf("Failed to get instance manager when checking replica %v is reusable: %v", r.Name, err)
return false, nil
Expand Down

0 comments on commit 3b710be

Please sign in to comment.