hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1099667 - /hadoop/hdfs/branches/HDFS-1073/src/java/org/apache/hadoop/hdfs/server/namenode/FSImageTransactionalStorageInspector.java
Date Thu, 05 May 2011 02:19:55 GMT
Author: todd
Date: Thu May  5 02:19:55 2011
New Revision: 1099667

URL: http://svn.apache.org/viewvc?rev=1099667&view=rev
Log:
Amend HDFS-1792. Address review feedback from Eli to rename one local variable.

Modified:
    hadoop/hdfs/branches/HDFS-1073/src/java/org/apache/hadoop/hdfs/server/namenode/FSImageTransactionalStorageInspector.java

Modified: hadoop/hdfs/branches/HDFS-1073/src/java/org/apache/hadoop/hdfs/server/namenode/FSImageTransactionalStorageInspector.java
URL: http://svn.apache.org/viewvc/hadoop/hdfs/branches/HDFS-1073/src/java/org/apache/hadoop/hdfs/server/namenode/FSImageTransactionalStorageInspector.java?rev=1099667&r1=1099666&r2=1099667&view=diff
==============================================================================
--- hadoop/hdfs/branches/HDFS-1073/src/java/org/apache/hadoop/hdfs/server/namenode/FSImageTransactionalStorageInspector.java
(original)
+++ hadoop/hdfs/branches/HDFS-1073/src/java/org/apache/hadoop/hdfs/server/namenode/FSImageTransactionalStorageInspector.java
Thu May  5 02:19:55 2011
@@ -357,17 +357,17 @@ class FSImageTransactionalStorageInspect
         return;
       }
 
-      long maxLength = Long.MIN_VALUE;
+      long maxValidLength = Long.MIN_VALUE;
       for (FoundEditLog log : logs) {
         long validLength = log.getValidLength();
         LOG.warn("  Log " + log.getFile() + " valid length=" + validLength);
-        maxLength = Math.max(maxLength, validLength);
+        maxValidLength = Math.max(maxValidLength, validLength);
       }        
 
       for (FoundEditLog log : logs) {
-        if (log.getValidLength() < maxLength) {
+        if (log.getValidLength() < maxValidLength) {
           LOG.warn("Marking log at " + log.getFile() + " as corrupt since " +
-              "it is shorter than " + maxLength + " bytes");
+              "it is shorter than " + maxValidLength + " bytes");
           log.markCorrupt();
         }
       }



Mime
View raw message