mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4705 - ensure cached lastModified is externally visible - hardened test showed window for missed mod
This commit is contained in:
parent
fee7c1cf4c
commit
181e4d4617
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue