Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
New
Description
Spinoff of LUCENE-4746.
This method is currently:
copy(Directory to, String src, String dest, IOContext context)
But it would be better to restructure this so the destination directory is the one actually being changed by the operation:
copyFrom(Directory from, String src, String dest, IOContext context)
Besides fixing the order to make sense, adding it to the name might help prevent bugs like the current TrackingDirectoryWrapper impl (used by IndexWriter to track what files are used):
public void copy(Directory to, String src, String dest, IOContext context) throws IOException { createdFileNames.add(dest); // BUG! in.copy(to, src, dest, context); }
Attachments
Attachments
Issue Links
- is related to
-
LUCENE-6150 Remove staleFiles set and onIndexOutputClosed from FSDirectory
- Closed