Skip to content

Commit

Permalink
removed division by zero check condition in store_client.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
vshailesh committed Oct 24, 2024
1 parent 3ce9346 commit b06616d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/store_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -984,12 +984,6 @@ CheckQuickAbortIsReasonable(StoreEntry * entry)
return true;
}

// XXX: This is absurd! TODO: For positives, "a/(b/c) > d" is "a*c > b*d".
if (expectlen < 100) {
debugs(90, 3, "quick-abort? NO avoid FPE");
return false;
}

if (curlen > expectlen*(Config.quickAbort.pct/100.0)) {
debugs(90, 3, "quick-abort? NO past point of no return");
return false;
Expand Down

0 comments on commit b06616d

Please sign in to comment.