jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From casta...@apache.org
Subject svn commit: r1186627 - /incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/Transaction.java
Date Thu, 20 Oct 2011 06:48:29 GMT
Author: castagna
Date: Thu Oct 20 06:48:28 2011
New Revision: 1186627

URL: http://svn.apache.org/viewvc?rev=1186627&view=rev
Log:
JENA-131

Patch from Simon applied.
I did not experience this problem myself, but it seems the right thing to do.

Modified:
    incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/Transaction.java

Modified: incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/Transaction.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/Transaction.java?rev=1186627&r1=1186626&r2=1186627&view=diff
==============================================================================
--- incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/Transaction.java
(original)
+++ incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/Transaction.java
Thu Oct 20 06:48:28 2011
@@ -184,8 +184,8 @@ public class Transaction
         this.activedsg = activedsg ;
     }
 
-    public void addIterator(Iterator<?> iter)       { iterators.add(iter) ; }
-    public void removeIterator(Iterator<?> iter)    { iterators.remove(iter) ; }
+    public synchronized void addIterator(Iterator<?> iter)       { iterators.add(iter)
; }
+    public synchronized void removeIterator(Iterator<?> iter)    { iterators.remove(iter)
; }
     public List<Iterator<?>> iterators()            { return Collections.unmodifiableList(iterators)
; }
     
     public List<TransactionLifecycle> components()



Mime
View raw message