Permalink
Browse files

Merge pull request #69 from bjoernhaeuser/synchronise-on-project

[JENKINS-41880] Synchronise on Fingerprint
  • Loading branch information...
jglick committed May 11, 2018
2 parents e00c616 + cca5639 commit c38b852d4a9ebff98a0184748396959cdaeba129
@@ -257,6 +257,7 @@ public static void addFromFacet(@CheckForNull String ancestorImageId, @Nonnull S
long timestamp = System.currentTimeMillis();
if (ancestorImageId != null) {
Fingerprint f = forImage(run, ancestorImageId);
synchronized (f) {
Collection<FingerprintFacet> facets = f.getFacets();
DockerDescendantFingerprintFacet descendantFacet = null;
for (FingerprintFacet facet : facets) {
@@ -278,8 +279,10 @@ public static void addFromFacet(@CheckForNull String ancestorImageId, @Nonnull S
} finally {
bc.abort();
}
}
}
Fingerprint f = forImage(run, descendantImageId);
synchronized (f) {
Collection<FingerprintFacet> facets = f.getFacets();
DockerAncestorFingerprintFacet ancestorFacet = null;
for (FingerprintFacet facet : facets) {
@@ -303,6 +306,7 @@ public static void addFromFacet(@CheckForNull String ancestorImageId, @Nonnull S
} finally {
bc.abort();
}
}
}

}

0 comments on commit c38b852

Please sign in to comment.