hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r697289 - /hadoop/core/trunk/src/tools/org/apache/hadoop/tools/InputSampler.java
Date Fri, 19 Sep 2008 23:52:50 GMT
Author: cdouglas
Date: Fri Sep 19 16:52:50 2008
New Revision: 697289

URL: http://svn.apache.org/viewvc?rev=697289&view=rev
Log:
HADOOP-3019. Missed a line

Modified:
    hadoop/core/trunk/src/tools/org/apache/hadoop/tools/InputSampler.java

Modified: hadoop/core/trunk/src/tools/org/apache/hadoop/tools/InputSampler.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/tools/org/apache/hadoop/tools/InputSampler.java?rev=697289&r1=697288&r2=697289&view=diff
==============================================================================
--- hadoop/core/trunk/src/tools/org/apache/hadoop/tools/InputSampler.java (original)
+++ hadoop/core/trunk/src/tools/org/apache/hadoop/tools/InputSampler.java Fri Sep 19 16:52:50
2008
@@ -235,7 +235,7 @@
               // pushed out
               int ind = r.nextInt(numSamples);
               if (ind != numSamples) {
-                samples.set(r.nextInt(numSamples - 1), key);
+                samples.set(ind, key);
               }
               freq *= (numSamples - 1) / (double) numSamples;
             }



Mime
View raw message