Re: svn commit: r467846 - in /xml/xindice/trunk/java/src/org/apache/xindice/core: Collection.java Database.java DatabaseShutdownHandler.java

"Todd Byrne" <[email protected]>
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Missread the diff. Thanks.

Todd

On 10/26/06, Vadim Gritsenko <[email protected]> wrote:
>
> Todd Byrne wrote:
> > In the DatabaseShudownHandler.run method the synchronized block needs to
> > be outside the loop. Its possible for the Map to be modified by a
> > different thread and that will throw a ConcurrentModificationExpection
> > from the iteration.
>
> Yep, it is there:
>
> >     +        synchronized (databases) {
> >     +            Iterator dbs = databases.iterator();
>
>
> Vadim
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.