BundleDbPersistenceManager.checkConsistency() only fixes inconsistency if 
consistencyFix is enabled in configuration
--------------------------------------------------------------------------------------------------------------------

                 Key: JCR-1540
                 URL: https://issues.apache.org/jira/browse/JCR-1540
             Project: Jackrabbit
          Issue Type: Bug
          Components: jackrabbit-core
    Affects Versions: core 1.4.2, core 1.4.1, 1.4
            Reporter: Marcel Reutegger
            Priority: Minor


The method has a parameter that explicitly tells whether an inconsistency 
should be fixed, thus the configuration parameter should be ignored.

Suggested patch:

Index: BundleDbPersistenceManager.java
===================================================================
--- BundleDbPersistenceManager.java     (revision 648657)
+++ BundleDbPersistenceManager.java     (working copy)
@@ -864,7 +864,7 @@
         }
 
         // repair collected broken bundles
-        if (consistencyFix && !modifications.isEmpty()) {
+        if (fix && !modifications.isEmpty()) {
             log.info(name + ": Fixing " + modifications.size() + " 
inconsistent bundle(s)...");
             Iterator iterator = modifications.iterator();
             while (iterator.hasNext()) {


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to