clearing zombie list. Should not be necessary but what the heck

This commit is contained in:
mdipierro
2012-10-07 13:31:02 -05:00
parent 64c7fdf057
commit 90ed2b0c51
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.9 (2012-10-07 10:48:33) dev
Version 2.0.9 (2012-10-07 13:30:56) dev
+3 -1
View File
@@ -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