fix for a parallelization issue: moving the creation of iterators outside of the sync block so we don't wait for RMD tracks to seek to the correct location. Thanks to Ben for providing the test case!
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3703 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
43ca595d15
commit
4903d1fb4f
|
|
@ -62,15 +62,15 @@ abstract class ResourcePool <T,I extends Iterator> {
|
|||
|
||||
// Remove the iterator from the list of available iterators.
|
||||
availableResources.remove(selectedResource);
|
||||
|
||||
|
||||
I iterator = createIteratorFromResource(segment, selectedResource);
|
||||
|
||||
// Make a note of this assignment for proper releasing later.
|
||||
resourceAssignments.put(iterator, selectedResource);
|
||||
|
||||
return iterator;
|
||||
}
|
||||
|
||||
|
||||
I iterator = createIteratorFromResource(segment, selectedResource);
|
||||
|
||||
// Make a note of this assignment for proper releasing later.
|
||||
resourceAssignments.put(iterator, selectedResource);
|
||||
|
||||
return iterator;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue