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:
parent
4b7c58487e
commit
ac00a60db2
|
@ -836,7 +836,7 @@ public class HRegion implements HeapSize { // , Writable{
|
||||||
if (this.rsAccounting != null) {
|
if (this.rsAccounting != null) {
|
||||||
rsAccounting.addAndGetGlobalMemstoreSize(memStoreSize);
|
rsAccounting.addAndGetGlobalMemstoreSize(memStoreSize);
|
||||||
}
|
}
|
||||||
return this.memstoreSize.getAndAdd(memStoreSize);
|
return this.memstoreSize.addAndGet(memStoreSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return a HRegionInfo object for this region */
|
/** @return a HRegionInfo object for this region */
|
||||||
|
|
Loading…
Reference in New Issue