hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1574161 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/TimeRangeTracker.java
Date Tue, 04 Mar 2014 17:57:41 GMT
Author: tedyu
Date: Tue Mar  4 17:57:40 2014
New Revision: 1574161

URL: http://svn.apache.org/r1574161
Log:
HBASE-10624 Fix 2 new findbugs warnings introduced by HBASE-10598


Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/TimeRangeTracker.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/TimeRangeTracker.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/TimeRangeTracker.java?rev=1574161&r1=1574160&r2=1574161&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/TimeRangeTracker.java
(original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/TimeRangeTracker.java
Tue Mar  4 17:57:40 2014
@@ -133,18 +133,18 @@ public class TimeRangeTracker implements
     return maximumTimestamp;
   }
 
-  public void write(final DataOutput out) throws IOException {
+  public synchronized void write(final DataOutput out) throws IOException {
     out.writeLong(minimumTimestamp);
     out.writeLong(maximumTimestamp);
   }
 
-  public void readFields(final DataInput in) throws IOException {
+  public synchronized void readFields(final DataInput in) throws IOException {
     this.minimumTimestamp = in.readLong();
     this.maximumTimestamp = in.readLong();
   }
 
   @Override
-  public String toString() {
+  public synchronized String toString() {
     return "[" + minimumTimestamp + "," + maximumTimestamp + "]";
   }
 



Mime
View raw message