HBASE-10539. HRegion.addAndGetGlobalMemstoreSize returns previous size (Feng Honghua)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1569471 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2014-02-18 18:49:03 +00:00
parent 4b7c58487e
commit ac00a60db2
1 changed files with 1 additions and 1 deletions

View File

@ -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 */