[session] del session's thread local store on close stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 11 Mar 2010 16:49:43 +0100
branchstable
changeset 4867 b67838d18a4f
parent 4866 550e35a69b75
child 4868 e34cbd85d14d
[session] del session's thread local store on close
server/session.py
--- a/server/session.py	Thu Mar 11 16:49:07 2010 +0100
+++ b/server/session.py	Thu Mar 11 16:49:43 2010 +0100
@@ -569,6 +569,7 @@
                 self.error('thread %s still alive after 10 seconds, will close '
                            'session anyway', thread)
         self.rollback()
+        del self._threaddata
 
     # transaction data/operations management ##################################
 
@@ -767,7 +768,7 @@
 
     def close(self):
         """do not close pool on session close, since they are shared now"""
-        self.rollback()
+        self.parent_session.close()
 
     def user_data(self):
         """returns a dictionnary with this user's information"""