mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
another bug.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1880 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
5944ff3a63
commit
e003b9853d
1 file changed
+2
-2
@@ -116,7 +116,7 @@ public final class FingerprintMap {
|
||||
// the fingerprint doesn't seem to be loaded thus far, so let's load it now.
|
||||
// the care needs to be taken that other threads might be trying to do the same.
|
||||
Loading l = new Loading();
|
||||
if(!(value==null ? core.putIfAbsent(md5sum,l)!=null : core.replace(md5sum,value,l))) {
|
||||
if(value==null ? core.putIfAbsent(md5sum,l)!=null : !core.replace(md5sum,value,l)) {
|
||||
// the value has changed since then. another thread is attempting to do the same.
|
||||
// go back to square 1 and try it again.
|
||||
continue;
|
||||
@@ -130,7 +130,7 @@ public final class FingerprintMap {
|
||||
if(fp!=null)
|
||||
core.put(md5sum,new WeakReference<Fingerprint>(fp));
|
||||
else
|
||||
core.put(md5sum,null);
|
||||
core.remove(md5sum);
|
||||
|
||||
return fp;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user