HBASE-18568 Correct metric of numRegions
Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
parent
f06d62652b
commit
cc0e630d2b
|
@ -69,6 +69,7 @@ public class MetricsRegionSourceImpl implements MetricsRegionSource {
|
|||
MetricsRegionAggregateSourceImpl aggregate) {
|
||||
this.regionWrapper = regionWrapper;
|
||||
agg = aggregate;
|
||||
hashCode = regionWrapper.getRegionHashCode();
|
||||
agg.register(this);
|
||||
|
||||
LOG.debug("Creating new MetricsRegionSourceImpl for table " +
|
||||
|
@ -100,8 +101,6 @@ public class MetricsRegionSourceImpl implements MetricsRegionSource {
|
|||
|
||||
regionScanKey = regionNamePrefix + MetricsRegionServerSource.SCAN_KEY + suffix;
|
||||
regionScan = registry.getCounter(regionScanKey, 0L);
|
||||
|
||||
hashCode = regionWrapper.getRegionHashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue