Repository: gora
Updated Branches:
  refs/heads/master 854899e5d -> 882fac979


GORA-494 Lack of synchronization accessing cacheManager in 
InfinispanClient#createSchema()


Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/882fac97
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/882fac97
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/882fac97

Branch: refs/heads/master
Commit: 882fac9790e64183999cf6d3714d12d0e73da351
Parents: 854899e
Author: Lewis John McGibbney <lewis.mcgibb...@gmail.com>
Authored: Fri Sep 16 12:03:23 2016 -0700
Committer: Lewis John McGibbney <lewis.mcgibb...@gmail.com>
Committed: Fri Sep 16 12:03:23 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/gora/infinispan/store/InfinispanClient.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/882fac97/gora-infinispan/src/main/java/org/apache/gora/infinispan/store/InfinispanClient.java
----------------------------------------------------------------------
diff --git 
a/gora-infinispan/src/main/java/org/apache/gora/infinispan/store/InfinispanClient.java
 
b/gora-infinispan/src/main/java/org/apache/gora/infinispan/store/InfinispanClient.java
index ab0a64b..335c85b 100644
--- 
a/gora-infinispan/src/main/java/org/apache/gora/infinispan/store/InfinispanClient.java
+++ 
b/gora-infinispan/src/main/java/org/apache/gora/infinispan/store/InfinispanClient.java
@@ -93,7 +93,7 @@ public class InfinispanClient<K, T extends PersistentBase> 
implements Configurab
     return cacheExists;
   }
 
-  public void createSchema() {
+  public synchronized void createSchema() {
     try {
       Support.registerSchema(cacheManager, 
persistentClass.newInstance().getSchema());
     } catch (InstantiationException | IllegalAccessException e) {

Reply via email to