diff options
author | 2017-06-19 16:55:24 -0400 | |
---|---|---|
committer | 2017-06-20 14:35:24 -0400 | |
commit | bfd1d3384b41ac9e563afe5c95afa010d8c19f4a (patch) | |
tree | 275fb466b04a28b668685655f7473d4b32f863da /src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java | |
parent | 44dd226a540ace2ef1c348f778512616de82ce31 (diff) |
Adding support for SHA256 for remote execution. Switch remote execution to use
the currently defined hash function for blobs. Some refactoring. Adding an option to set the hash function in the remote worker, defaulting to the current behavior (unfortunately it is a build option, have not found a clean way to specify it at runtime).
BUG=62622420
TESTED=remote worker
RELNOTES: none
PiperOrigin-RevId: 159473116
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java b/src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java index 2512308808..aeccb3bf4b 100644 --- a/src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java +++ b/src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java @@ -378,11 +378,11 @@ public class JavaIoFileSystem extends AbstractFileSystemWithCustomStat { } @Override - protected byte[] getMD5Digest(Path path) throws IOException { + protected byte[] getDigest(Path path, HashFunction hashFunction) throws IOException { String name = path.toString(); long startTime = Profiler.nanoTimeMaybe(); try { - return super.getMD5Digest(path); + return super.getDigest(path, hashFunction); } finally { profiler.logSimpleTask(startTime, ProfilerTask.VFS_MD5, name); } |