Browse Source

HADOOP-217. Fix another illegal access problem when static
initializers are not run.


git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@411282 13f79535-47bb-0310-9956-ffa450edef68

Doug Cutting 19 years ago
parent
commit
a70e171165
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/java/org/apache/hadoop/dfs/NameNode.java

+ 1 - 0
src/java/org/apache/hadoop/dfs/NameNode.java

@@ -72,6 +72,7 @@ public class NameNode implements ClientProtocol, DatanodeProtocol, FSConstants {
     // creating an instance will do the static initialization of the class
     static {
       new DatanodeRegistration();
+      new Block();
     }
 
     /** Format a new filesystem.  Destroys any filesystem that may already