You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Shalin Shekhar Mangar <sh...@gmail.com> on 2013/05/23 21:00:55 UTC

DistributedUpdateProcessor's isReplayOrPeerSync

I see the following in solr's DistributedUpdateProcessor:

boolean isReplayOrPeersync = (cmd.getFlags() & (UpdateCommand.REPLAY |
UpdateCommand.REPLAY)) != 0;

Shouldn't that be the following?

boolean isReplayOrPeersync = (cmd.getFlags() & (UpdateCommand.REPLAY |
UpdateCommand.PEER_SYNC)) != 0;

-- 
Regards,
Shalin Shekhar Mangar.

Re: DistributedUpdateProcessor's isReplayOrPeerSync

Posted by Mark Miller <ma...@gmail.com>.
Good catch!

- Mark

On May 23, 2013, at 3:00 PM, Shalin Shekhar Mangar <sh...@gmail.com> wrote:

> I see the following in solr's DistributedUpdateProcessor:
> 
> boolean isReplayOrPeersync = (cmd.getFlags() & (UpdateCommand.REPLAY | UpdateCommand.REPLAY)) != 0;
> 
> Shouldn't that be the following?
> 
> boolean isReplayOrPeersync = (cmd.getFlags() & (UpdateCommand.REPLAY | UpdateCommand.PEER_SYNC)) != 0;
> 
> -- 
> Regards,
> Shalin Shekhar Mangar.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org