HBASE-10749 CellComparator.compareStatic() compares type wrongly (Ramkrishna S. Vasudevan)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1577765 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a1a5f57bff
commit
2ea3307765
|
@ -86,7 +86,7 @@ public class CellComparator implements Comparator<Cell>, Serializable{
|
||||||
if (c != 0) return c;
|
if (c != 0) return c;
|
||||||
|
|
||||||
//type
|
//type
|
||||||
c = (0xff & a.getTypeByte()) - (0xff & b.getTypeByte());
|
c = (0xff & b.getTypeByte()) - (0xff & a.getTypeByte());
|
||||||
if (c != 0) return c;
|
if (c != 0) return c;
|
||||||
|
|
||||||
//mvccVersion: later sorts first
|
//mvccVersion: later sorts first
|
||||||
|
|
Loading…
Reference in New Issue