HBASE-20932 Effective MemStoreSize::hashCode()
Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
parent
1913164970
commit
a392c017ed
|
@ -100,9 +100,9 @@ public class MemStoreSize {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
long h = 31 * this.dataSize;
|
long h = this.dataSize;
|
||||||
h = h + 31 * this.heapSize;
|
h = h * 31 + this.heapSize;
|
||||||
h = h + 31 * this.offHeapSize;
|
h = h * 31 + this.offHeapSize;
|
||||||
return (int) h;
|
return (int) h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue