directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gokt...@apache.org
Subject svn commit: r1373646 - /directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/DefaultTxnManager.java
Date Wed, 15 Aug 2012 21:55:33 GMT
Author: gokturk
Date: Wed Aug 15 21:55:33 2012
New Revision: 1373646

URL: http://svn.apache.org/viewvc?rev=1373646&view=rev
Log:
* After flushing txns, added a WAL.sync() to sync itself up to latest flushed LSN of a transaction.

Modified:
    directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/DefaultTxnManager.java

Modified: directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/DefaultTxnManager.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/DefaultTxnManager.java?rev=1373646&r1=1373645&r2=1373646&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/DefaultTxnManager.java
(original)
+++ directory/apacheds/branches/apacheds-txns/core-shared/src/main/java/org/apache/directory/server/core/shared/txn/DefaultTxnManager.java
Wed Aug 15 21:55:33 2012
@@ -982,6 +982,9 @@ class DefaultTxnManager implements TxnMa
             partitionIt.next().sync();
         }
 
+        // Sync WAL to the last flushed LSN
+        wal.sync( latestFlushedLsn );
+
         numFlushes++;
 
         if ( lastLogRecord != null )



Mime
View raw message