afs commented on issue #2254: URL: https://github.com/apache/jena/issues/2254#issuecomment-1934905058
That's the common way to do it - the other is to write a file with the current active storage area at the start of compaction, and append the intended new location at the end of the work, move it, then then delete the file. A transaction log in other words. Can a directory with memory-mapped files in it be renamed on MS Windows? Or does this run into the problems around https://bugs.openjdk.org/browse/JDK-4715154? The related [Files.move](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/file/Files.html#move(java.nio.file.Path,java.nio.file.Path,java.nio.file.CopyOption...)) has more details and seems to say "OK" """ When invoked to move a directory that is not empty then the directory is moved if it does not require moving the entries in the directory. """ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
