Author: davsclaus
Date: Fri Apr 20 09:40:56 2012
New Revision: 1328282
URL: http://svn.apache.org/viewvc?rev=1328282&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.8.x/ (props changed)
camel/branches/camel-2.8.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
Propchange: camel/branches/camel-2.8.x/
------------------------------------------------------------------------------
Merged /camel/trunk:r1328278
Merged /camel/branches/camel-2.9.x:r1328279
Propchange: camel/branches/camel-2.8.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified:
camel/branches/camel-2.8.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.8.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java?rev=1328282&r1=1328281&r2=1328282&view=diff
==============================================================================
---
camel/branches/camel-2.8.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
(original)
+++
camel/branches/camel-2.8.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
Fri Apr 20 09:40:56 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();
}
}