Skip to content

Commit

Permalink
0004472: Staging Purge stops extracts from continuing on when running on
Browse files Browse the repository at this point in the history
the same instance
  • Loading branch information
philipmarzullo64 committed Jul 9, 2020
1 parent 57882a0 commit fe0ded9
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,10 @@ public IStagedResource find(String path) {
if (resource == null) {
boolean foundResourcePath = resourcePathsCache.containsKey(path);
if (!foundResourcePath) {
synchronized (this) {
resource = createStagedResource(path);
if (resource.getState() == State.DONE) {
resourcePathsCache.put(path, path);
foundResourcePath = true;
}
resource = createStagedResource(path);
if (resource.getState() == State.DONE) {
resourcePathsCache.put(path, path);
foundResourcePath = true;
}
} else if (foundResourcePath) {
resource = createStagedResource(path);
Expand Down

0 comments on commit fe0ded9

Please sign in to comment.