HBASE-13447 Bypass logic in TimeRange.compare.
This commit is contained in:
parent
4fc39fd7c9
commit
ba4c14133e
|
@ -166,6 +166,7 @@ public class TimeRange {
|
||||||
* 1 if timestamp is greater than timerange
|
* 1 if timestamp is greater than timerange
|
||||||
*/
|
*/
|
||||||
public int compare(long timestamp) {
|
public int compare(long timestamp) {
|
||||||
|
if (allTime) return 0;
|
||||||
if (timestamp < minStamp) {
|
if (timestamp < minStamp) {
|
||||||
return -1;
|
return -1;
|
||||||
} else if (timestamp >= maxStamp) {
|
} else if (timestamp >= maxStamp) {
|
||||||
|
|
Loading…
Reference in New Issue