cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1137770 - /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/FailureDetector.java
Date Mon, 20 Jun 2011 20:28:28 GMT
Author: jbellis
Date: Mon Jun 20 20:28:28 2011
New Revision: 1137770

URL: http://svn.apache.org/viewvc?rev=1137770&view=rev
Log:
synchronize phi() for tlast access consistency

Modified:
    cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/FailureDetector.java

Modified: cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/FailureDetector.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/FailureDetector.java?rev=1137770&r1=1137769&r2=1137770&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/FailureDetector.java
(original)
+++ cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/gms/FailureDetector.java
Mon Jun 20 20:28:28 2011
@@ -257,7 +257,7 @@ class ArrivalWindow
     }
 
     // see CASSANDRA-2597 for an explanation of the math at work here.
-    double synchronized phi(long tnow)
+    synchronized double phi(long tnow)
     {
         int size = arrivalIntervals_.size();
         double t = tnow - tLast_;



Mime
View raw message