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:
aaron 2010-07-01 16:37:02 +00:00
parent 43ca595d15
commit 4903d1fb4f
1 changed files with 8 additions and 8 deletions

View File

@ -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.