You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2013/07/11 15:13:56 UTC

git commit: forgot initialising "maintenance lock"

Updated Branches:
  refs/heads/develop 1278bc476 -> cb035946e


forgot initialising "maintenance lock"


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/cb035946
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/cb035946
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/cb035946

Branch: refs/heads/develop
Commit: cb035946e9f7a60d3f8fb08107c4253ebfc22e23
Parents: 1278bc4
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Thu Jul 11 15:13:49 2013 +0200
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Thu Jul 11 15:13:49 2013 +0200

----------------------------------------------------------------------
 .../java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/cb035946/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
index 7a114f4..3ef51f1 100644
--- a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
+++ b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
@@ -47,6 +47,7 @@ import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.atomic.AtomicLong;
 import java.util.concurrent.locks.ReadWriteLock;
 import java.util.concurrent.locks.ReentrantLock;
+import java.util.concurrent.locks.ReentrantReadWriteLock;
 
 /**
  * Add file description here!
@@ -104,6 +105,7 @@ public class KiWiPersistence {
 
     public KiWiPersistence(KiWiConfiguration configuration) {
         this.configuration = configuration;
+        this.maintenanceLock = new ReentrantReadWriteLock();
 
         // init JDBC connection pool
         initConnectionPool();