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
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue