Author: davsclaus Date: Fri Apr 20 09:36:34 2012 New Revision: 1328279 URL: http://svn.apache.org/viewvc?rev=1328279&view=rev Log: CAMEL-5196: Fixed sftp changed read lock strategy to use modificed timestamp. Thanks to Steven Barham for the patch.
Modified: camel/branches/camel-2.9.x/ (props changed) camel/branches/camel-2.9.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java Propchange: camel/branches/camel-2.9.x/ ------------------------------------------------------------------------------ Merged /camel/trunk:r1328278 Propchange: camel/branches/camel-2.9.x/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: camel/branches/camel-2.9.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java?rev=1328279&r1=1328278&r2=1328279&view=diff ============================================================================== --- camel/branches/camel-2.9.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java (original) +++ camel/branches/camel-2.9.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java Fri Apr 20 09:36:34 2012 @@ -64,7 +64,7 @@ public class SftpChangedExclusiveReadLoc List<ChannelSftp.LsEntry> files = operations.listFiles(file.getParent()); for (ChannelSftp.LsEntry f : files) { if (f.getFilename().equals(file.getFileName())) { - newLastModified = f.getAttrs().getATime(); + newLastModified = f.getAttrs().getMTime(); newLength = f.getAttrs().getSize(); } }