lib/neo4j/database.rb in neo4j-1.0.0.beta.15 vs lib/neo4j/database.rb in neo4j-1.0.0.beta.16

- old
+ new

@@ -16,9 +16,15 @@ at_exit { shutdown } end def shutdown if @running + # since we might keep a reference to indexes we must clear them so + # that we can start neo4j with a fresh new lucene indexes + Neo4j::Transaction.run do + Neo4j::Index::IndexerRegistry.clear_all_indexes + end + @graph.unregister_transaction_event_handler(@event_handler) @event_handler.neo4j_shutdown(self) @graph.shutdown @graph = nil @lucene = nil