diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java index 59dcf3ce0af..980db3c5f64 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java @@ -836,7 +836,7 @@ public class HRegion implements HeapSize { // , Writable{ if (this.rsAccounting != null) { rsAccounting.addAndGetGlobalMemstoreSize(memStoreSize); } - return this.memstoreSize.getAndAdd(memStoreSize); + return this.memstoreSize.addAndGet(memStoreSize); } /** @return a HRegionInfo object for this region */