Skip to content

Commit 92a535b

Browse files
committed
TMP: Use renameTo in prefetcher
1 parent e77d78f commit 92a535b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/google/devtools/build/lib/remote/AbstractActionInputPrefetcher.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
import com.google.devtools.build.lib.remote.util.AsyncTaskCache;
5353
import com.google.devtools.build.lib.util.TempPathGenerator;
5454
import com.google.devtools.build.lib.vfs.FileSymlinkLoopException;
55-
import com.google.devtools.build.lib.vfs.FileSystemUtils;
5655
import com.google.devtools.build.lib.vfs.OutputPermissions;
5756
import com.google.devtools.build.lib.vfs.Path;
5857
import com.google.devtools.build.lib.vfs.PathFragment;
@@ -631,7 +630,7 @@ private void finalizeDownload(
631630
// Set output permissions on files, matching the behavior of SkyframeActionExecutor#checkOutputs
632631
// for artifacts produced by local actions.
633632
tmpPath.chmod(outputPermissions.getPermissionsMode());
634-
FileSystemUtils.moveFile(tmpPath, finalPath);
633+
tmpPath.renameTo(finalPath);
635634

636635
// Set the contents proxy when supported, to make future modification checks cheaper.
637636
metadata.setContentsProxy(FileContentsProxy.create(finalPath.stat()));

0 commit comments

Comments
 (0)