Skip to content

Commit

Permalink
Fix bug the engine might choose a replica with a smaller head size to be
Browse files Browse the repository at this point in the history
the source of truth for auto-salvage

longhorn-8659

Signed-off-by: Phan Le <[email protected]>
  • Loading branch information
PhanLe1010 committed May 29, 2024
1 parent e39b7f0 commit 709c181
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ func (c *Controller) salvageRevisionCounterDisabledReplicas() error {
if t.Add(lastModifyCheckPeriod).After(lastTime) {
if salvageReplica.HeadFileSize >= largestSize {
bestCandidate = r
largestSize = salvageReplica.HeadFileSize
}
}
}
Expand Down

0 comments on commit 709c181

Please sign in to comment.