You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-commits@hadoop.apache.org by to...@apache.org on 2011/07/25 22:31:09 UTC

svn commit: r1150891 - /hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java

Author: todd
Date: Mon Jul 25 20:31:09 2011
New Revision: 1150891

URL: http://svn.apache.org/viewvc?rev=1150891&view=rev
Log:
Change BackupImage.BNState comments to be JavaDoc

Part of response to Konstantin's review.

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

Modified: hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java?rev=1150891&r1=1150890&r2=1150891&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java (original)
+++ hadoop/common/branches/HDFS-1073/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java Mon Jul 25 20:31:09 2011
@@ -58,14 +58,20 @@ public class BackupImage extends FSImage
    */
   volatile BNState bnState;
   static enum BNState {
-    // Edits from the NN should be dropped. On the next log roll,
-    // transition to JOURNAL_ONLY state
+    /**
+     * Edits from the NN should be dropped. On the next log roll,
+     * transition to JOURNAL_ONLY state
+     */
     DROP_UNTIL_NEXT_ROLL,
-    // Edits from the NN should be written to the local edits log
-    // but not applied to the namespace.
+    /**
+     * Edits from the NN should be written to the local edits log
+     * but not applied to the namespace.
+     */
     JOURNAL_ONLY,
-    // Edits should be written to the local edits log and applied
-    // to the local namespace.
+    /**
+     * Edits should be written to the local edits log and applied
+     * to the local namespace.
+     */
     IN_SYNC;
   }