Revision: 14456
          http://gate.svn.sourceforge.net/gate/?rev=14456&view=rev
Author:   ian_roberts
Date:     2011-10-28 16:32:44 +0000 (Fri, 28 Oct 2011)
Log Message:
-----------
Remove the QueryEngine from the map when closing a local index, so it gets
properly recreated next time the index is opened.

Modified Paths:
--------------
    
mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/LocalIndexService.groovy

Modified: 
mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/LocalIndexService.groovy
===================================================================
--- 
mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/LocalIndexService.groovy
   2011-10-28 16:17:43 UTC (rev 14455)
+++ 
mimir/trunk/mimir-web/grails-app/services/gate/mimir/web/LocalIndexService.groovy
   2011-10-28 16:32:44 UTC (rev 14456)
@@ -128,7 +128,10 @@
         }
       }
     } else if(index.state == Index.SEARCHING) {
-      getQueryEngine(index).close()
+      QueryEngine engine = queryEngines.remove(index.id)
+      if(engine) {
+        engine.close()
+      }
     }
   }
   

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to