瀏覽代碼

commit 40d3d6aab4afb7219fb461815499741036c515ba
Author: Luke Lu <llu@yahoo-inc.com>
Date: Tue Jul 27 17:19:42 2010 -0700

Fix metrics system init contract to handle previous errors.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077606 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 年之前
父節點
當前提交
a6cec965e8
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/core/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java

+ 0 - 1
src/core/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java

@@ -129,7 +129,6 @@ public class MetricsSystemImpl implements MetricsSystem {
       LOG.warn(this.prefix +" metrics system already initialized!");
       return;
     }
-    Contracts.checkState(this.prefix == null, "prefix should be null so far.");
     this.prefix = Contracts.checkNotNull(prefix, "prefix");
     try { start(); }
     catch (MetricsConfigException e) {