HBASE-15968 (addendum) revert unrelated PE changing

This commit is contained in:
Phil Yang 2017-07-25 15:16:02 +08:00
parent 1ac4152b19
commit e1cd59bbc4
1 changed files with 2 additions and 1 deletions

View File

@ -1064,7 +1064,7 @@ public class PerformanceEvaluation extends Configured implements Tool {
} }
void updateValueSize(final Result r) throws IOException { void updateValueSize(final Result r) throws IOException {
if (r == null ) return; if (r == null || !isRandomValueSize()) return;
int size = 0; int size = 0;
for (CellScanner scanner = r.cellScanner(); scanner.advance();) { for (CellScanner scanner = r.cellScanner(); scanner.advance();) {
size += scanner.current().getValueLength(); size += scanner.current().getValueLength();
@ -1073,6 +1073,7 @@ public class PerformanceEvaluation extends Configured implements Tool {
} }
void updateValueSize(final int valueSize) { void updateValueSize(final int valueSize) {
if (!isRandomValueSize()) return;
this.valueSizeHistogram.update(valueSize); this.valueSizeHistogram.update(valueSize);
} }