浏览代码

Change BackupImage.BNState comments to be JavaDoc

Part of response to Konstantin's review.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-1073@1150891 13f79535-47bb-0310-9956-ffa450edef68
Todd Lipcon 13 年之前
父节点
当前提交
586501a9fb
共有 1 个文件被更改,包括 12 次插入6 次删除
  1. 12 6
      hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java

+ 12 - 6
hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/BackupImage.java

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