mirror of https://github.com/apache/cassandra
avoid anti-entropy checks on the System table. patch by Stu Hood; reviewed by jbellis for CASSANDRA-616
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@888710 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d267cf77bd
commit
5b86c3dc00
|
|
@ -273,12 +273,13 @@ public class AntiEntropyService
|
|||
*
|
||||
* @param table The table name containing the column family.
|
||||
* @param cf The column family name.
|
||||
* @param initiator Endpoint that initially triggered this validation, or null.
|
||||
* @param initiator Endpoint that initially triggered this validation, or null if
|
||||
* the validation will not see all of the data contained in the column family.
|
||||
* @return A Validator.
|
||||
*/
|
||||
public IValidator getValidator(String table, String cf, InetAddress initiator)
|
||||
{
|
||||
if (initiator == null)
|
||||
if (initiator == null || table.equals(Table.SYSTEM_TABLE))
|
||||
return new NoopValidator();
|
||||
else if (StorageService.instance().getTokenMetadata().sortedTokens().size() < 1)
|
||||
// gossiper isn't started
|
||||
|
|
|
|||
Loading…
Reference in New Issue