HBASE-11579 CopyTable should check endtime value only if != 0 (Jean-Marc Spaggiari)

This commit is contained in:
Andrew Purtell 2014-07-24 12:05:27 -07:00
parent cc61cc3081
commit 7b5a309697
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ public class CopyTable extends Configured implements Tool {
"peer address must be specified");
return false;
}
if (startTime > endTime) {
if ((endTime != 0) && (startTime > endTime)) {
printUsage("Invalid time range filter: starttime=" + startTime + " > endtime=" + endTime);
return false;
}