You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2020/04/13 12:52:02 UTC

[commons-jcs] 02/03: Synchronize on table creation

This is an automated email from the ASF dual-hosted git repository.

tv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git

commit 6be4d249cfedb9a4fca88ce1e871b6a1cc652d51
Author: Thomas Vandahl <tv...@apache.org>
AuthorDate: Mon Apr 13 14:51:08 2020 +0200

    Synchronize on table creation
---
 .../commons/jcs/auxiliary/disk/jdbc/hsql/HSQLDiskCacheFactory.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/jdbc/hsql/HSQLDiskCacheFactory.java b/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/jdbc/hsql/HSQLDiskCacheFactory.java
index 1afb779..8a50305 100644
--- a/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/jdbc/hsql/HSQLDiskCacheFactory.java
+++ b/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/jdbc/hsql/HSQLDiskCacheFactory.java
@@ -98,7 +98,7 @@ public class HSQLDiskCacheFactory
      * @param cConn
      * @param tableName
      */
-    protected void setupTable( Connection cConn, String tableName ) throws SQLException
+    protected synchronized void setupTable( Connection cConn, String tableName ) throws SQLException
     {
         DatabaseMetaData dmd = cConn.getMetaData();
         ResultSet result = dmd.getTables(null, null, tableName, null);