HBASE-4595 HFilePrettyPrinter Scanned kv count always 0

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1187004 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-10-20 19:25:38 +00:00
parent 0b65addae7
commit 0d9185a60d
2 changed files with 3 additions and 2 deletions

View File

@ -383,6 +383,7 @@ Release 0.92.0 - Unreleased
pass (Li Pi)
HBASE-4510 Check and workaround usage of internal HDFS APIs in HBase
(Harsh)
HBASE-4595 HFilePrettyPrinter Scanned kv count always 0 (Matteo Bertozzi)
TESTS
HBASE-4450 test for number of blocks read: to serve as baseline for expected

View File

@ -194,7 +194,7 @@ public class HFilePrettyPrinter {
// scan over file and read key/value's and check if requested
HFileScanner scanner = reader.getScanner(false, false, false);
scanner.seekTo();
scanKeysValues(file, count, scanner);
scanKeysValues(file, scanner);
}
// print meta data
@ -210,7 +210,7 @@ public class HFilePrettyPrinter {
reader.close();
}
private void scanKeysValues(Path file, int count, HFileScanner scanner)
private void scanKeysValues(Path file, HFileScanner scanner)
throws IOException {
KeyValue pkv = null;
do {