Revision: 16113 http://gate.svn.sourceforge.net/gate/?rev=16113&view=rev Author: valyt Date: 2012-10-05 07:35:14 +0000 (Fri, 05 Oct 2012) Log Message: ----------- Bugfix: using the wrong type is a very bad idea in a weakly typed language.
Hopefully this will allow the query runners to be closed. Modified Paths: -------------- mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/SearchService.groovy Modified: mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/SearchService.groovy =================================================================== --- mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/SearchService.groovy 2012-10-05 01:18:51 UTC (rev 16112) +++ mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/SearchService.groovy 2012-10-05 07:35:14 UTC (rev 16113) @@ -129,7 +129,7 @@ * Implementation of a cache removal listener, so that we can close the query * runners as they get evicted. */ -class CacheRemovalListener implements RemovalListener<String, QueryRunner> { +class CacheRemovalListener implements RemovalListener<String, QueryRunnerHolder> { def log @@ -137,11 +137,10 @@ * @see com.google.common.cache.RemovalListener#onRemoval(com.google.common.cache.RemovalNotification) */ @Override - public void onRemoval(RemovalNotification<String, QueryRunner> notification) { + public void onRemoval(RemovalNotification<String, QueryRunnerHolder> notification) { log.debug("Evicting query ${notification.key}.") - notification.value.close() + notification.value.queryRunner.close() } - } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs