HADOOP-2414 Fix ArrayIndexOutOfBoundsException in bloom filters.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@604281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Kellerman 2007-12-14 19:58:33 +00:00
parent b36f712736
commit 10bac1971d
2 changed files with 2 additions and 1 deletions

View File

@ -80,6 +80,7 @@ Trunk (unreleased changes)
HADOOP-2417 Fix critical shutdown problem introduced by HADOOP-2338
HADOOP-2418 Fix assertion failures in TestTableMapReduce, TestTableIndex,
and TestTableJoinMapReduce
HADOOP-2414 Fix ArrayIndexOutOfBoundsException in bloom filters.
IMPROVEMENTS
HADOOP-2401 Add convenience put method that takes writable

View File

@ -112,7 +112,7 @@ public final class HashFunction{
}
int[] result = new int[nbHash];
for (int i = 0, initval = 0; i < nbHash; i++) {
initval = result[i] = Math.abs(JenkinsHash.hash(b, initval)) % maxValue;
initval = result[i] = Math.abs(JenkinsHash.hash(b, initval) % maxValue);
}
return result;
}//end hash()