clearing zombie list. Should not be necessary but what the heck
This commit is contained in:
@@ -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
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
#!/bin/env python
|
#!/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
@@ -525,7 +526,8 @@ class ConnectionPool(object):
|
|||||||
for db_uid, db_group in dbs:
|
for db_uid, db_group in dbs:
|
||||||
for db in db_group:
|
for db in db_group:
|
||||||
db._adapter.close(action)
|
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):
|
if callable(action):
|
||||||
action(None)
|
action(None)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user