Skip to content

Commit

Permalink
Increase timeout for rename retries.
Browse files Browse the repository at this point in the history
Per rust-lang#1912 McAfee users are still seeing contention on directory renames.
Give McAfee more settle time.
  • Loading branch information
rbtcollins authored and workingjubilee committed Aug 9, 2020
1 parent be689ab commit b11e35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ where
// for our previous poor performance that avoided the race condition with
// McAfee and Norton.
retry(
Fibonacci::from_millis(1).map(jitter).take(21),
Fibonacci::from_millis(1).map(jitter).take(26),
|| match fs::rename(src, dest) {
Ok(()) => OperationResult::Ok(()),
Err(e) => match e.kind() {
Expand Down

0 comments on commit b11e35a

Please sign in to comment.