Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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.