[repo session] expected argument is the source, not the session stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 18 Jun 2010 14:56:01 +0200
branchstable
changeset 5791 274a5a6080a7
parent 5789 0f969e5c579a
child 5792 e13aa4786a72
[repo session] expected argument is the source, not the session
server/session.py
--- a/server/session.py	Fri Jun 18 13:32:54 2010 +0200
+++ b/server/session.py	Fri Jun 18 14:56:01 2010 +0200
@@ -285,7 +285,7 @@
             return source.doexec(self, sql, args, rollback=rollback_on_failure)
         except (source.OperationalError, source.InterfaceError):
             source.warning("trying to reconnect")
-            self.pool.reconnect(self)
+            self.pool.reconnect(source)
             return source.doexec(self, sql, args, rollback=rollback_on_failure)
 
     def set_language(self, language):