mirror of https://github.com/apache/lucene.git
Let hard link wrapper fallback to delegate.copyFrom (#12384)
Co-authored-by: Yixun Xu <yixunx@palantir.com>
This commit is contained in:
parent
b88d3e1988
commit
6bb8cc0235
|
@ -92,7 +92,7 @@ public final class HardlinkCopyDirectoryWrapper extends FilterDirectory {
|
||||||
}
|
}
|
||||||
if (tryCopy) {
|
if (tryCopy) {
|
||||||
try {
|
try {
|
||||||
super.copyFrom(from, srcFile, destFile, context);
|
getDelegate().copyFrom(from, srcFile, destFile, context);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
if (suppressedException != null) {
|
if (suppressedException != null) {
|
||||||
ex.addSuppressed(suppressedException);
|
ex.addSuppressed(suppressedException);
|
||||||
|
|
Loading…
Reference in New Issue