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,6 +62,7 @@ abstract class ResourcePool <T,I extends Iterator> {
|
||||||
|
|
||||||
// Remove the iterator from the list of available iterators.
|
// Remove the iterator from the list of available iterators.
|
||||||
availableResources.remove(selectedResource);
|
availableResources.remove(selectedResource);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
I iterator = createIteratorFromResource(segment, selectedResource);
|
I iterator = createIteratorFromResource(segment, selectedResource);
|
||||||
|
|
@ -71,7 +72,6 @@ abstract class ResourcePool <T,I extends Iterator> {
|
||||||
|
|
||||||
return iterator;
|
return iterator;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Release the lock on the given iterator, returning it to the pool.
|
* Release the lock on the given iterator, returning it to the pool.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue