cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r888710 - /incubator/cassandra/trunk/src/java/org/apache/cassandra/service/AntiEntropyService.java
Date Wed, 09 Dec 2009 06:32:38 GMT
Author: jbellis
Date: Wed Dec  9 06:32:37 2009
New Revision: 888710

URL: http://svn.apache.org/viewvc?rev=888710&view=rev
Log:
avoid anti-entropy checks on the System table.  patch by Stu Hood; reviewed by jbellis for
CASSANDRA-616

Modified:
    incubator/cassandra/trunk/src/java/org/apache/cassandra/service/AntiEntropyService.java

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/service/AntiEntropyService.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/service/AntiEntropyService.java?rev=888710&r1=888709&r2=888710&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/service/AntiEntropyService.java
(original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/service/AntiEntropyService.java
Wed Dec  9 06:32:37 2009
@@ -273,12 +273,13 @@
      *
      * @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



Mime
View raw message