You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/05/22 17:30:36 UTC
[camel] 02/03: File Changed ReadLock Strategy with minAge only looks for lastModified (#10131)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 430af4a0bd32e0eb619e43e19c386f5a7382489e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon May 22 17:21:37 2023 +0200
File Changed ReadLock Strategy with minAge only looks for lastModified (#10131)
---
.../component/file/strategy/FileChangedExclusiveReadLockStrategy.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileChangedExclusiveReadLockStrategy.java b/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileChangedExclusiveReadLockStrategy.java
index b1e04b4273e..1bf34e8b0c5 100644
--- a/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileChangedExclusiveReadLockStrategy.java
+++ b/components/camel-file/src/main/java/org/apache/camel/component/file/strategy/FileChangedExclusiveReadLockStrategy.java
@@ -88,7 +88,7 @@ public class FileChangedExclusiveReadLockStrategy extends MarkerFileExclusiveRea
LOG.trace("Min File Trigger Time: {}", minTriggerTime);
if (newLength >= minLength && currentTime >= minTriggerTime
- && newLastModified == lastModified && newLength == length) {
+ && newLastModified == lastModified && newLength == length) {
LOG.trace("Read lock acquired.");
exclusive = true;
} else {