1
0
فهرست منبع

HDFS-579. Fix DfsTask to follow the semantics of 0.19, regarding non-zero
return values as failures. Contributed by Christian Kunz


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20@826138 13f79535-47bb-0310-9956-ffa450edef68

Christopher Douglas 15 سال پیش
والد
کامیت
a8ae1f789c
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java

+ 3 - 0
CHANGES.txt

@@ -26,6 +26,9 @@ Release 0.20.2 - Unreleased
     HDFS-709. Fix TestDFSShell failure due to rename bug introduced by 
     HDFS-677. (suresh)
 
+    HDFS-579. Fix DfsTask to follow the semantics of 0.19, regarding non-zero
+    return values as failures. (Christian Kunz via cdouglas)
+
 Release 0.20.1 - 2009-09-01
 
   INCOMPATIBLE CHANGES

+ 1 - 1
src/ant/org/apache/hadoop/ant/condition/DfsBaseConditional.java

@@ -56,7 +56,7 @@ public abstract class DfsBaseConditional extends org.apache.hadoop.ant.DfsTask
 
   protected int postCmd(int exit_code) {
     exit_code = super.postCmd(exit_code);
-    result = exit_code == 1;
+    result = exit_code == 0;
     return exit_code;
   }