jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1518353 - /jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphWithLock.java
Date Wed, 28 Aug 2013 20:18:53 GMT
Author: andy
Date: Wed Aug 28 20:18:53 2013
New Revision: 1518353

URL: http://svn.apache.org/r1518353
Log:
JENA-523 : Clean up even when abort is called.

Modified:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphWithLock.java

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphWithLock.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphWithLock.java?rev=1518353&r1=1518352&r2=1518353&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphWithLock.java
(original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphWithLock.java
Wed Aug 28 20:18:53 2013
@@ -96,8 +96,11 @@ public class DatasetGraphWithLock extend
     @Override
     protected void _abort() {
         // OK for read, not for write.
-        if ( readWrite.get() == ReadWrite.WRITE )
+        if ( readWrite.get() == ReadWrite.WRITE ) {
+            // Still clean up.
+            _end() ;
             throw new JenaTransactionException("Can't abort a write lock-transaction") ;
+        }
         _end() ;
     }
 



Mime
View raw message