HBASE-11005 Remove dead code in HalfStoreFileReader#getScanner#seekBefore() (Gustavo Anatoly)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1588295 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bdef332044
commit
2c5f834a51
|
@ -297,10 +297,6 @@ public class HalfStoreFileReader extends StoreFile.Reader {
|
||||||
public boolean seekBefore(Cell key) throws IOException {
|
public boolean seekBefore(Cell key) throws IOException {
|
||||||
if (top) {
|
if (top) {
|
||||||
Cell fk = new KeyValue.KeyOnlyKeyValue(getFirstKey(), 0, getFirstKey().length);
|
Cell fk = new KeyValue.KeyOnlyKeyValue(getFirstKey(), 0, getFirstKey().length);
|
||||||
// This will be null when the file is empty in which we can not
|
|
||||||
// seekBefore to any key
|
|
||||||
if (fk == null)
|
|
||||||
return false;
|
|
||||||
if (getComparator().compareOnlyKeyPortion(key, fk) <= 0) {
|
if (getComparator().compareOnlyKeyPortion(key, fk) <= 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue