[repository] do not rollback when freeing pool. This shouldn't be necessary and brings a not-so-small overhead when the page makes a lot of queries stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 29 Jun 2009 16:09:49 +0200
branchstable
changeset 2192 529edb6a6c96
parent 2191 1f0fde12e35b
child 2193 667b6340bfd4
[repository] do not rollback when freeing pool. This shouldn't be necessary and brings a not-so-small overhead when the page makes a lot of queries
server/repository.py
--- a/server/repository.py	Mon Jun 29 16:04:21 2009 +0200
+++ b/server/repository.py	Mon Jun 29 16:09:49 2009 +0200
@@ -343,7 +343,6 @@
                             'connections pools size)')
 
     def _free_pool(self, pool):
-        pool.rollback()
         self._available_pools.put_nowait(pool)
 
     def pinfo(self):