From b05c70bd9630af19300f221ae4f05d6a7ae15629 Mon Sep 17 00:00:00 2001 From: Robert Joseph Evans Date: Wed, 15 Aug 2012 19:50:07 +0000 Subject: [PATCH] HADOOP-8703: Fix formatting issue. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1373599 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hadoop/tools/mapred/RetriableFileCopyCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/RetriableFileCopyCommand.java b/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/RetriableFileCopyCommand.java index 227df08d11..9148630d08 100644 --- a/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/RetriableFileCopyCommand.java +++ b/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/RetriableFileCopyCommand.java @@ -92,8 +92,9 @@ public class RetriableFileCopyCommand extends RetriableCommand { compareFileLengths(sourceFileStatus, tmpTargetPath, configuration, bytesRead); //At this point, src&dest lengths are same. if length==0, we skip checksum - if (bytesRead != 0) - compareCheckSums(sourceFS, sourceFileStatus.getPath(), targetFS, tmpTargetPath); + if (bytesRead != 0) { + compareCheckSums(sourceFS, sourceFileStatus.getPath(), targetFS, tmpTargetPath); + } promoteTmpToTarget(tmpTargetPath, target, targetFS); return bytesRead;