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:
Robert Joseph Evans 2012-08-15 19:50:07 +00:00
parent 6167123bcb
commit b05c70bd96
1 changed files with 3 additions and 2 deletions

View File

@ -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;