You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2018/08/19 21:58:20 UTC

[directory-server] 03/03: Update the ctxCsnChanged flag when we have written the contextCsn on disk. This saves a lot of useless writes

This is an automated email from the ASF dual-hosted git repository.

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-server.git

commit c9d8aedc909ab864decfccc3bbc9b97a8596d49c
Author: Emmanuel Lécharny <el...@symas.com>
AuthorDate: Sun Aug 19 23:58:07 2018 +0200

    Update the ctxCsnChanged flag when we have written the contextCsn on disk. This saves a lot of useless writes
---
 .../server/core/partition/impl/btree/AbstractBTreePartition.java         | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java b/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
index a9b00f9..1baf481 100644
--- a/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
+++ b/xdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/AbstractBTreePartition.java
@@ -1205,6 +1205,7 @@ public abstract class AbstractBTreePartition extends AbstractPartition implement
                 {
                     ctxCsnSemaphore.acquire();
                     saveContextCsn( partitionTxn );
+                    ctxCsnChanged = false;
                 }
                 catch ( Exception e )
                 {