Skip to content

Commit

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

Update replica scheduler codes due to the changes in APIs.

Longhorn 9104

Signed-off-by: Derek Su <[email protected]>
  • Loading branch information
derekbit committed Dec 15, 2024
1 parent c8c6f5b commit 35a6d99
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 35a6d99

Please sign in to comment.