camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-9820: SFTP readLock=changed does not work with readLockMinAge option
Date Wed, 06 Apr 2016 10:08:10 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.16.x cf8a6a215 -> 20bbbcc9a


CAMEL-9820: SFTP readLock=changed does not work with readLockMinAge option


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/20bbbcc9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/20bbbcc9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/20bbbcc9

Branch: refs/heads/camel-2.16.x
Commit: 20bbbcc9ab8baab8eaf0fbc4c9fed4a426eef3fb
Parents: cf8a6a2
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Wed Apr 6 11:27:46 2016 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Wed Apr 6 11:40:42 2016 +0200

----------------------------------------------------------------------
 .../file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/20bbbcc9/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
index 5e21dd1..165f1bb 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
@@ -83,7 +83,7 @@ public class SftpChangedExclusiveReadLockStrategy implements GenericFileExclusiv
             LOG.trace("List files {} found {} files", file.getAbsoluteFilePath(), files.size());
             for (ChannelSftp.LsEntry f : files) {
                 if (f.getFilename().equals(file.getFileNameOnly())) {
-                    newLastModified = f.getAttrs().getMTime();
+                    newLastModified = f.getAttrs().getMTime() * 1000;
                     newLength = f.getAttrs().getSize();
                 }
             }


Mime
View raw message