activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject activemq git commit: https://issues.apache.org/jira/browse/AMQ-4705 - ensure cached lastModified is externally visible - hardened test showed window for missed mod
Date Thu, 14 May 2015 12:52:03 GMT
Repository: activemq
Updated Branches:
  refs/heads/master fee7c1cf4 -> 181e4d461


https://issues.apache.org/jira/browse/AMQ-4705 - ensure cached lastModified is externally
visible - hardened test showed window for missed mod


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/181e4d46
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/181e4d46
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/181e4d46

Branch: refs/heads/master
Commit: 181e4d461758acb9910615213db8d400277309d6
Parents: fee7c1c
Author: gtully <gary.tully@gmail.com>
Authored: Thu May 14 13:48:14 2015 +0100
Committer: gtully <gary.tully@gmail.com>
Committed: Thu May 14 13:48:14 2015 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/activemq/util/LockFile.java            | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/181e4d46/activemq-broker/src/main/java/org/apache/activemq/util/LockFile.java
----------------------------------------------------------------------
diff --git a/activemq-broker/src/main/java/org/apache/activemq/util/LockFile.java b/activemq-broker/src/main/java/org/apache/activemq/util/LockFile.java
index 4f99abe..45e26ca 100644
--- a/activemq-broker/src/main/java/org/apache/activemq/util/LockFile.java
+++ b/activemq-broker/src/main/java/org/apache/activemq/util/LockFile.java
@@ -83,6 +83,7 @@ public class LockFile {
                 }
                 if (lock != null) {
                     //Set lastModified only if we are able to successfully obtain the lock.
+                    readFile.getChannel().force(true);
                     lastModified = file.lastModified();
                     lockCounter++;
                     System.setProperty(getVmLockKey(), new Date().toString());


Mime
View raw message