Преглед изворни кода

HDFS-15116. Correct spelling of comments for NNStorage.setRestoreFailedStorage. Contributed by Xudong Cao.

Ayush Saxena пре 4 година
родитељ
комит
70789fc6b9

+ 2 - 2
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java

@@ -218,13 +218,13 @@ public class NNStorage extends Storage implements Closeable,
 
   /**
    * Set flag whether an attempt should be made to restore failed storage
-   * directories at the next available oppurtuinity.
+   * directories at the next available opportunity.
    *
    * @param val Whether restoration attempt should be made.
    */
   void setRestoreFailedStorage(boolean val) {
     LOG.warn("set restore failed storage to {}", val);
-    restoreFailedStorage=val;
+    restoreFailedStorage = val;
   }
 
   /**