Author: markt
Date: Wed Apr  1 10:22:14 2015
New Revision: 1670599

URL: http://svn.apache.org/r1670599
Log:
Align redeploy resource modification checking with reload modification checking 
so that now, in both cases, a change in modification time rather than an 
increase in modification time is used to determine if the resource has changed. 

Modified:
    tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java

Modified: tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java?rev=1670599&r1=1670598&r2=1670599&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java Wed Apr  1 
10:22:14 2015
@@ -1242,7 +1242,7 @@ public class HostConfig implements Lifec
                 // modified time has to be more than 1000ms ago to ensure that
                 // modifications that take place in the same second are not
                 // missed. See Bug 57765.
-                if (resource.lastModified() > lastModified &&
+                if (resource.lastModified() != lastModified &&
                         resource.lastModified() < 
currentTimeWithResolutionOffset) {
                     if (resource.isDirectory()) {
                         // No action required for modified directory



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to