From 90ed2b0c5108d8ad77412decc161dc99a882b701 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 7 Oct 2012 13:31:02 -0500 Subject: [PATCH] clearing zombie list. Should not be necessary but what the heck --- VERSION | 2 +- gluon/dal.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index a24aba7a..daf39b00 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-10-07 10:48:33) dev +Version 2.0.9 (2012-10-07 13:30:56) dev diff --git a/gluon/dal.py b/gluon/dal.py index 676dbf22..a3656a9f 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -1,3 +1,4 @@ + #!/bin/env python # -*- coding: utf-8 -*- @@ -525,7 +526,8 @@ class ConnectionPool(object): for db_uid, db_group in dbs: for db in db_group: db._adapter.close(action) - del THREAD_LOCAL.db_instances[db_uid] + THREAD_LOCAL.db_instances.clear() + THREAD_LOCAL.db_instances_zombie.clear() if callable(action): action(None) return