You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by om...@apache.org on 2011/05/27 00:44:48 UTC

svn commit: r1128115 - in /hadoop/common/branches/branch-0.20-security-203: CHANGES.txt src/core/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java

Author: omalley
Date: Thu May 26 22:44:48 2011
New Revision: 1128115

URL: http://svn.apache.org/viewvc?rev=1128115&view=rev
Log:
HADOOP-7330. Fix MetricsSourceAdapter to use the value instead of the 
object. (Luke Lu via omalley)

Modified:
    hadoop/common/branches/branch-0.20-security-203/CHANGES.txt
    hadoop/common/branches/branch-0.20-security-203/src/core/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java

Modified: hadoop/common/branches/branch-0.20-security-203/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-203/CHANGES.txt?rev=1128115&r1=1128114&r2=1128115&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-203/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.20-security-203/CHANGES.txt Thu May 26 22:44:48 2011
@@ -1,5 +1,10 @@
 Hadoop Change Log
 
+Release 0.20.203.1 - Unreleased
+
+    HADOOP-7330. Fix MetricsSourceAdapter to use the value instead of the 
+    object. (Luke Lu via omalley)
+
 Release 0.20.203.0 - 2011-5-11
 
     MAPREDUCE-1280. Update Eclipse plugin to the new eclipse.jdt API.

Modified: hadoop/common/branches/branch-0.20-security-203/src/core/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-203/src/core/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java?rev=1128115&r1=1128114&r2=1128115&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-203/src/core/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java (original)
+++ hadoop/common/branches/branch-0.20-security-203/src/core/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java Thu May 26 22:44:48 2011
@@ -102,7 +102,7 @@ class MetricsSourceAdapter implements Dy
     if (LOG.isDebugEnabled()) {
       LOG.debug(attribute +": "+ a.getName() +"="+ a.getValue());
     }
-    return a;
+    return a.getValue();
   }
 
   public void setAttribute(Attribute attribute)