hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1440581 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java
Date Wed, 30 Jan 2013 18:46:57 GMT
Author: tedyu
Date: Wed Jan 30 18:46:57 2013
New Revision: 1440581

URL: http://svn.apache.org/viewvc?rev=1440581&view=rev
Log:
HBASE-7719 HTableDescriptor.setDeferredLogFlush should be synchronized (Jean-Marc)


Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java?rev=1440581&r1=1440580&r2=1440581&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java (original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java Wed
Jan 30 18:46:57 2013
@@ -607,7 +607,7 @@ public class HTableDescriptor implements
    * 
    * @param isDeferredLogFlush
    */
-  public void setDeferredLogFlush(final boolean isDeferredLogFlush) {
+  public synchronized void setDeferredLogFlush(final boolean isDeferredLogFlush) {
     setValue(DEFERRED_LOG_FLUSH_KEY, isDeferredLogFlush? TRUE: FALSE);
     this.deferredLog = isDeferredLogFlush;
   }



Mime
View raw message