소스 검색

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 년 전
부모
커밋
a70e171165
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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