From bc6ac55177b2d7a0827b03535abab36bd0b610b4 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Thu, 12 Apr 2012 09:13:04 -0500 Subject: [PATCH] reconnect commits first --- VERSION | 2 +- gluon/dal.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index bf79ec11..bfbe5ee3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-04-12 08:26:20) dev +Version 1.99.7 (2012-04-12 09:12:46) dev diff --git a/gluon/dal.py b/gluon/dal.py index 04769873..c8285f89 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -472,6 +472,7 @@ class ConnectionPool(object): def reconnect(self): """ allows a thread to re-connect to server or re-pool """ + self.close_all_instances('commit') self.pool_connection(self._connection_function) self.after_connection()