Move downloaded partition instead of copying it.
@@ -1015,10 +1015,7 @@ public class SnapshotRestoreProcess {
Path partFile = Paths.get(tmpCacheDir.getAbsolutePath(), snpFile.getName());
try {
- IgniteSnapshotManager.copy(snpMgr.ioFactory(),
- snpFile,
- partFile.toFile(),
- snpFile.length());
+ Files.move(snpFile.toPath(), partFile);
partFut.complete(partFile);
}
