HBASE-969 Won't when storefile > 2G.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@709519 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-10-31 18:16:23 +00:00
parent ea06419301
commit ad3c964f42
2 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ Release 0.19.0 - Unreleased
HBASE-973 [doc] In getting started, make it clear that hbase needs to
create its directory in hdfs
HBASE-963 Fix the retries in HTable.flushCommit
HBASE-969 Won't when storefile > 2G.
IMPROVEMENTS
HBASE-901 Add a limit to key length, check key and value length on client side

View File

@ -151,7 +151,7 @@ public class BlockFSInputStream extends FSInputStream {
}
private synchronized void blockSeekTo(long target) throws IOException {
int targetBlock = (int) (target / blockSize);
long targetBlock = target/blockSize;
long targetBlockStart = targetBlock * blockSize;
long targetBlockEnd = Math.min(targetBlockStart + blockSize, fileLength) - 1;
long blockLength = targetBlockEnd - targetBlockStart + 1;