HBASE-13847 getWriteRequestCount function in HRegionServer uses int variable to return the count (Abhilash)
This commit is contained in:
parent
c19bc6d6e0
commit
c62b396f9f
|
@ -1114,7 +1114,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