[SOLR-4315] - removed useless shardId param from doDefensiveChecks method

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1435097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tommaso Teofili 2013-01-18 11:37:43 +00:00
parent 385ae445b5
commit 47a03b99b0

View File

@ -227,7 +227,7 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {
DistribPhase phase =
DistribPhase.parseParam(req.getParams().get(DISTRIB_UPDATE_PARAM));
doDefensiveChecks(shardId, phase);
doDefensiveChecks(phase);
if (DistribPhase.FROMLEADER == phase) {
@ -279,7 +279,7 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {
}
private void doDefensiveChecks(String shardId, DistribPhase phase) {
private void doDefensiveChecks(DistribPhase phase) {
boolean isReplayOrPeersync = (updateCommand.getFlags() & (UpdateCommand.REPLAY | UpdateCommand.REPLAY)) != 0;
if (isReplayOrPeersync) return;