HADOOP-8703: Fix formatting issue.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1373599 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6167123bcb
commit
b05c70bd96
|
@ -92,8 +92,9 @@ public class RetriableFileCopyCommand extends RetriableCommand {
|
||||||
|
|
||||||
compareFileLengths(sourceFileStatus, tmpTargetPath, configuration, bytesRead);
|
compareFileLengths(sourceFileStatus, tmpTargetPath, configuration, bytesRead);
|
||||||
//At this point, src&dest lengths are same. if length==0, we skip checksum
|
//At this point, src&dest lengths are same. if length==0, we skip checksum
|
||||||
if (bytesRead != 0)
|
if (bytesRead != 0) {
|
||||||
compareCheckSums(sourceFS, sourceFileStatus.getPath(), targetFS, tmpTargetPath);
|
compareCheckSums(sourceFS, sourceFileStatus.getPath(), targetFS, tmpTargetPath);
|
||||||
|
}
|
||||||
promoteTmpToTarget(tmpTargetPath, target, targetFS);
|
promoteTmpToTarget(tmpTargetPath, target, targetFS);
|
||||||
return bytesRead;
|
return bytesRead;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue