james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1158154 - /james/server/trunk/hbase/src/main/java/org/apache/james/system/hbase/TablePool.java
Date Tue, 16 Aug 2011 08:40:46 GMT
Author: eric
Date: Tue Aug 16 08:40:45 2011
New Revision: 1158154

URL: http://svn.apache.org/viewvc?rev=1158154&view=rev
Log:
Add synchronized to ensure thread-safety on singleton (JAMES-1273)

Modified:
    james/server/trunk/hbase/src/main/java/org/apache/james/system/hbase/TablePool.java

Modified: james/server/trunk/hbase/src/main/java/org/apache/james/system/hbase/TablePool.java
URL: http://svn.apache.org/viewvc/james/server/trunk/hbase/src/main/java/org/apache/james/system/hbase/TablePool.java?rev=1158154&r1=1158153&r2=1158154&view=diff
==============================================================================
--- james/server/trunk/hbase/src/main/java/org/apache/james/system/hbase/TablePool.java (original)
+++ james/server/trunk/hbase/src/main/java/org/apache/james/system/hbase/TablePool.java Tue
Aug 16 08:40:45 2011
@@ -54,7 +54,7 @@ public class TablePool {    
      * @return
      * @throws IOException
      */
-    public static TablePool getInstance() throws IOException {
+    public static synchronized TablePool getInstance() throws IOException {
         return getInstance(HBaseConfiguration.create());
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message