mirror of
https://github.com/apache/lucene.git
synced 2025-02-22 01:56:16 +00:00
[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:
parent
385ae445b5
commit
47a03b99b0
@ -227,7 +227,7 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {
|
|||||||
DistribPhase phase =
|
DistribPhase phase =
|
||||||
DistribPhase.parseParam(req.getParams().get(DISTRIB_UPDATE_PARAM));
|
DistribPhase.parseParam(req.getParams().get(DISTRIB_UPDATE_PARAM));
|
||||||
|
|
||||||
doDefensiveChecks(shardId, phase);
|
doDefensiveChecks(phase);
|
||||||
|
|
||||||
|
|
||||||
if (DistribPhase.FROMLEADER == 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;
|
boolean isReplayOrPeersync = (updateCommand.getFlags() & (UpdateCommand.REPLAY | UpdateCommand.REPLAY)) != 0;
|
||||||
if (isReplayOrPeersync) return;
|
if (isReplayOrPeersync) return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user