HBASE-13447 Bypass logic in TimeRange.compare.

This commit is contained in:
anoopsjohn 2015-04-14 11:39:06 +05:30
parent 4fc39fd7c9
commit ba4c14133e
1 changed files with 1 additions and 0 deletions

View File

@ -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) {