From: Peter S. <sz...@us...> - 2004-05-13 13:45:26
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8579/NHibernate/Impl Modified Files: SessionFactoryImpl.cs Log Message: Inserted cache into close, should finish after statementcache Index: SessionFactoryImpl.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/SessionFactoryImpl.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** SessionFactoryImpl.cs 13 May 2004 12:23:58 -0000 1.16 --- SessionFactoryImpl.cs 13 May 2004 13:45:16 -0000 1.17 *************** *** 643,647 **** { log.Info("Closing"); ! // nothing else to do unitl we get the caches working. } --- 643,667 ---- { log.Info("Closing"); ! ! foreach(IClassPersister p in classPersisters.Values) ! { ! if ( p.HasCache ) p.Cache.Destroy(); ! } ! ! foreach(CollectionPersister p in collectionPersisters.Values) ! { ! if ( p.HasCache ) p.Cache.Destroy(); ! } ! ! // TODO: H2.0.3 ! // if (statementCache!=null) statementCache.CloseAll(); ! // try ! // { ! // connections.close(); ! // } ! // finally ! // { ! // SessionFactoryObjectFactory.removeInstance(uuid, name, properties); ! // } } |