added synchronization to exists() call bacause the concurrent call to

that method showed in thread dump close to deadlock situations. Its also
better to synchronize IO operations because they become faster then.
pull/1/head
Michael Peter Christen 11 years ago
parent 9a6912f2e6
commit 79809342fa

@ -376,7 +376,7 @@ public class EmbeddedSolrConnector extends SolrServerConnector implements SolrCo
}
@Override
public boolean existsById(String id) {
public synchronized boolean existsById(String id) {
return getCountByQuery("{!raw f=" + CollectionSchema.id.getSolrFieldName() + "}" + id) > 0;
}

Loading…
Cancel
Save