HBASE-20932 Effective MemStoreSize::hashCode()

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Mingliang Liu 2018-07-25 14:32:08 -07:00 committed by tedyu
parent 1913164970
commit a392c017ed
1 changed files with 3 additions and 3 deletions

View File

@ -100,9 +100,9 @@ public class MemStoreSize {
@Override
public int hashCode() {
long h = 31 * this.dataSize;
h = h + 31 * this.heapSize;
h = h + 31 * this.offHeapSize;
long h = this.dataSize;
h = h * 31 + this.heapSize;
h = h * 31 + this.offHeapSize;
return (int) h;
}