HBASE-17897 StripeStoreFileManager#nonOpenRowCompare use the wrong comparison function
This commit is contained in:
parent
23249eb0f5
commit
cf3215d343
|
@ -562,7 +562,7 @@ public class StripeStoreFileManager
|
||||||
*/
|
*/
|
||||||
private final int nonOpenRowCompare(byte[] k1, byte[] k2) {
|
private final int nonOpenRowCompare(byte[] k1, byte[] k2) {
|
||||||
assert !isOpen(k1) && !isOpen(k2);
|
assert !isOpen(k1) && !isOpen(k2);
|
||||||
return cellComparator.compareRows(new KeyOnlyKeyValue(k1), k2, 0, k2.length);
|
return Bytes.compareTo(k1, k2);
|
||||||
}
|
}
|
||||||
|
|
||||||
private final int nonOpenRowCompare(Cell k1, byte[] k2) {
|
private final int nonOpenRowCompare(Cell k1, byte[] k2) {
|
||||||
|
|
|
@ -58,9 +58,9 @@ public class TestStripeStoreFileManager {
|
||||||
private static final Path CFDIR = HStore.getStoreHomedir(BASEDIR, "region", Bytes.toBytes("cf"));
|
private static final Path CFDIR = HStore.getStoreHomedir(BASEDIR, "region", Bytes.toBytes("cf"));
|
||||||
|
|
||||||
private static final byte[] KEY_A = Bytes.toBytes("aaa");
|
private static final byte[] KEY_A = Bytes.toBytes("aaa");
|
||||||
private static final byte[] KEY_B = Bytes.toBytes("bbb");
|
private static final byte[] KEY_B = Bytes.toBytes("aab");
|
||||||
private static final byte[] KEY_C = Bytes.toBytes("ccc");
|
private static final byte[] KEY_C = Bytes.toBytes("aac");
|
||||||
private static final byte[] KEY_D = Bytes.toBytes("ddd");
|
private static final byte[] KEY_D = Bytes.toBytes("aad");
|
||||||
|
|
||||||
private static final KeyValue KV_A = new KeyValue(KEY_A, 0L);
|
private static final KeyValue KV_A = new KeyValue(KEY_A, 0L);
|
||||||
private static final KeyValue KV_B = new KeyValue(KEY_B, 0L);
|
private static final KeyValue KV_B = new KeyValue(KEY_B, 0L);
|
||||||
|
|
Loading…
Reference in New Issue