jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/3] jena git commit: Put synchronized on the common "remove" implementation.
Date Sat, 20 Aug 2016 19:15:11 GMT
Put synchronized on the common "remove" implementation.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/21192d9c
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/21192d9c
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/21192d9c

Branch: refs/heads/master
Commit: 21192d9c0c220b498d546f1addf5c68cfc55ad6b
Parents: 906f0dd
Author: Andy Seaborne <andy@apache.org>
Authored: Sat Aug 20 20:07:15 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sat Aug 20 20:15:04 2016 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/jena/tdb/store/DatasetPrefixesTDB.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/21192d9c/jena-tdb/src/main/java/org/apache/jena/tdb/store/DatasetPrefixesTDB.java
----------------------------------------------------------------------
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/store/DatasetPrefixesTDB.java b/jena-tdb/src/main/java/org/apache/jena/tdb/store/DatasetPrefixesTDB.java
index e916d19..0e17208 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/store/DatasetPrefixesTDB.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/store/DatasetPrefixesTDB.java
@@ -140,7 +140,7 @@ public class DatasetPrefixesTDB implements DatasetPrefixStorage
     }
     
     @Override
-    public synchronized void removeFromPrefixMap(String graphName, String prefix) {
+    public void removeFromPrefixMap(String graphName, String prefix) {
         Node g = NodeFactory.createURI(graphName) ; 
         Node p = NodeFactory.createLiteral(prefix) ;
         removeAll(g, p, null) ;
@@ -153,7 +153,7 @@ public class DatasetPrefixesTDB implements DatasetPrefixStorage
     }
 
     /** Remove by pattern */
-    private void removeAll(Node g, Node p, Node uri) {
+    private synchronized void removeAll(Node g, Node p, Node uri) {
         Iterator<Tuple<Node>> iter = nodeTupleTable.find(g, p, uri) ;
         List<Tuple<Node>> list = Iter.toList(iter) ;    // Materialize.
         Iter.close(iter) ;


Mime
View raw message