You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2015/05/14 14:52:03 UTC
activemq git commit: https://issues.apache.org/jira/browse/AMQ-4705 -
ensure cached lastModified is externally visible - hardened test showed
window for missed mod
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 <ga...@gmail.com>
Authored: Thu May 14 13:48:14 2015 +0100
Committer: gtully <ga...@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());