Ensure to access RecoveryState#fileDetails under lock

Closes #43840
This commit is contained in:
paulward24 2019-07-03 04:37:07 -07:00 committed by Nhat Nguyen
parent 7059224668
commit cff027499a
1 changed files with 1 additions and 1 deletions

View File

@ -956,7 +956,7 @@ public class RecoveryState implements ToXContentFragment, Streamable, Writeable
}
}
public File getFileDetails(String dest) {
public synchronized File getFileDetails(String dest) {
return fileDetails.get(dest);
}
}