remove useless config

This commit is contained in:
fjy 2014-11-14 13:32:19 -08:00
parent d641d41f9e
commit df1ad95075
2 changed files with 1 additions and 9 deletions

View File

@ -90,7 +90,7 @@ public class RetryQueryRunner<T> implements QueryRunner<T>
}
final List<SegmentDescriptor> finalMissingSegs = getMissingSegments(context);
if (!config.returnPartialResults() && !finalMissingSegs.isEmpty()) {
if (!finalMissingSegs.isEmpty()) {
throw new SegmentMissingException("No results found for segments[%s]", finalMissingSegs);
}
}

View File

@ -26,16 +26,8 @@ public class RetryQueryRunnerConfig
@JsonProperty
private int numTries = 1;
@JsonProperty
private boolean returnPartialResults = false;
public int numTries()
{
return numTries;
}
public boolean returnPartialResults()
{
return returnPartialResults;
}
}