Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6001

Remove unused code from FileStore and TarWriter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0, 1.8.0
    • segment-tar
    • None

    Description

      FileStore.GarbageCollector#collectBulkReferences looks into the currently active TarWriter for references. At the time this method is invoked, the currently active TarWriter is always empty.

      Slightly before inspecting the TarWriter, FileStore#newWriter is called to flush the content of the current TarWriter and to create a fresh one. For this reason, inspecting the TarWriter in FileStore.GarbageCollector#collectBulkReferences is unnecessary - the graph of the TarWriter is always empty. Those lines of code can be safely removed.

      Attachments

        Activity

          People

            frm Francesco Mari
            frm Francesco Mari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: