mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-15 01:16:09 +00:00
[PLUGIN] Don't use atomic move when installing plugin
the extract location might be on a different filesystem where atomic move won't work. Yet this operation is not critical in terms of visibility so there is no need to do this.
This commit is contained in:
parent
a436da7cdb
commit
921e028e99
@ -243,7 +243,7 @@ public class PluginManager {
|
||||
if (Files.exists(toLocation)) {
|
||||
IOUtils.rm(toLocation);
|
||||
}
|
||||
Files.move(binFile, toLocation, StandardCopyOption.ATOMIC_MOVE);
|
||||
Files.move(binFile, toLocation);
|
||||
if (Files.getFileStore(toLocation).supportsFileAttributeView(PosixFileAttributeView.class)) {
|
||||
final Set<PosixFilePermission> perms = new HashSet<>();
|
||||
perms.add(PosixFilePermission.OWNER_EXECUTE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user