HBASE-13847 getWriteRequestCount function in HRegionServer uses int variable to return the count (Abhilash)
This commit is contained in:
parent
3dfccbd424
commit
14db858a28
|
@ -1109,7 +1109,7 @@ public class HRegionServer extends HasThread implements
|
|||
* @return Current write count for all online regions.
|
||||
*/
|
||||
private long getWriteRequestCount() {
|
||||
int writeCount = 0;
|
||||
long writeCount = 0;
|
||||
for (Map.Entry<String, Region> e: this.onlineRegions.entrySet()) {
|
||||
writeCount += e.getValue().getWriteRequestsCount();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue