Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7300

Add directory wrapper that optionally uses hardlinks in copyFrom

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.1
    • 6.1, 7.0
    • None
    • None
    • New, Patch Available

    Description

      Today we always do byte-by-byte copy in Directory#copyFrom. While this is reliable and should be the default, certain situations can be improved by using hardlinks if possible to get constant time copy on OS / FS that support such an operation. Something like this could reside in misc if it's contained enough since it requires LinkPermissions to be set and needs to detect if both directories are subclasses of FSDirectory etc.

      Attachments

        1. LUCENE-7300.patch
          10 kB
          Simon Willnauer
        2. LUCENE-7300.patch
          10 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: