server/session.py
changeset 9707 4a23058e4d9f
parent 9684 a6b084ea4c5b
child 9721 2f08bd4c813b
equal deleted inserted replaced
9706:f24c30a19898 9707:4a23058e4d9f
   591         with self._cnxset_tracker:
   591         with self._cnxset_tracker:
   592             old_cnxset = self._cnxset
   592             old_cnxset = self._cnxset
   593             if new_cnxset is old_cnxset:
   593             if new_cnxset is old_cnxset:
   594                 return #nothing to do
   594                 return #nothing to do
   595             if old_cnxset is not None:
   595             if old_cnxset is not None:
       
   596                 old_cnxset.rollback()
   596                 self._cnxset = None
   597                 self._cnxset = None
   597                 self.ctx_count -= 1
   598                 self.ctx_count -= 1
   598                 self._cnxset_tracker.forget(self.connectionid, old_cnxset)
   599                 self._cnxset_tracker.forget(self.connectionid, old_cnxset)
   599             if new_cnxset is not None:
   600             if new_cnxset is not None:
   600                 self._cnxset_tracker.record(self.connectionid, new_cnxset)
   601                 self._cnxset_tracker.record(self.connectionid, new_cnxset)