[EMAIL PROTECTED] wrote:
@@ -175,12 +163,9 @@
* Drop all indexers
*/
public synchronized void drop() {
- // Get a copy of idxList
- IndexerInfo[] idx = idxList;
-
// Drop indexes
- for (int i = 0; i < idx.length; i++) {
- drop(idx[i].name);
+ for (Iterator i = indexes.keySet().iterator(); i.hasNext(); ) {
+ drop((String) i.next());
}
}
This causes concurrent modification exception: call to drop(String) modifies indexes collection.
Hmm, test suite needs some improvement ;) Vadim
