Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1540

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4, core 1.4.1, core 1.4.2
    • core 1.4.3
    • jackrabbit-core
    • None

    Description

      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()) {

      Attachments

        Activity

          People

            Unassigned Unassigned
            mreutegg Marcel Reutegger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: