You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2023/06/28 07:47:12 UTC
[lucene] 02/03: Let hard link wrapper fallback to delegate.copyFrom (#12384)
This is an automated email from the ASF dual-hosted git repository.
jpountz pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
commit af2d1e5b9bd3fbf3aeb742669325724e079f173c
Author: yixunx <yi...@gmail.com>
AuthorDate: Wed Jun 28 03:17:20 2023 -0400
Let hard link wrapper fallback to delegate.copyFrom (#12384)
Co-authored-by: Yixun Xu <yi...@palantir.com>
---
.../java/org/apache/lucene/misc/store/HardlinkCopyDirectoryWrapper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/misc/src/java/org/apache/lucene/misc/store/HardlinkCopyDirectoryWrapper.java b/lucene/misc/src/java/org/apache/lucene/misc/store/HardlinkCopyDirectoryWrapper.java
index 3361c2615d4..4872846ade8 100644
--- a/lucene/misc/src/java/org/apache/lucene/misc/store/HardlinkCopyDirectoryWrapper.java
+++ b/lucene/misc/src/java/org/apache/lucene/misc/store/HardlinkCopyDirectoryWrapper.java
@@ -92,7 +92,7 @@ public final class HardlinkCopyDirectoryWrapper extends FilterDirectory {
}
if (tryCopy) {
try {
- super.copyFrom(from, srcFile, destFile, context);
+ getDelegate().copyFrom(from, srcFile, destFile, context);
} catch (Exception ex) {
if (suppressedException != null) {
ex.addSuppressed(suppressedException);