jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1374790 - /jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/TransactionManager.java
Date Sun, 19 Aug 2012 16:42:18 GMT
Author: andy
Date: Sun Aug 19 16:42:18 2012
New Revision: 1374790

URL: http://svn.apache.org/viewvc?rev=1374790&view=rev
Log:
Clear the cached reader view when the journal is flushed - next reader uses the updated database.

Modified:
    jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/TransactionManager.java

Modified: jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/TransactionManager.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/TransactionManager.java?rev=1374790&r1=1374789&r2=1374790&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/TransactionManager.java
(original)
+++ jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/TransactionManager.java
Sun Aug 19 16:42:18 2012
@@ -500,6 +500,10 @@ public class TransactionManager
         if ( log() )
             log("Start flush delayed commits", txn) ;
         
+        // Drop the cached reader view so that next time it is recreated
+        // against the updated database.
+        currentReaderView.set(null) ;
+        
         while ( queue.size() > 0 )
         {
             // Currently, replay is replay everything



Mime
View raw message