Commit cf798af0 authored by Jeremy Hylton's avatar Jeremy Hylton

Remove stray numeric expression. Add a couple of XXX comments.

parent 2746b93c
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
############################################################################## ##############################################################################
"""Database objects """Database objects
$Id: DB.py,v 1.52 2003/06/24 21:47:50 jeremy Exp $""" $Id: DB.py,v 1.53 2003/06/24 21:50:18 jeremy Exp $"""
__version__='$Revision: 1.52 $'[11:-2] __version__='$Revision: 1.53 $'[11:-2]
import cPickle, cStringIO, sys, POSException, UndoLogCompatible import cPickle, cStringIO, sys, POSException, UndoLogCompatible
from Connection import Connection from Connection import Connection
...@@ -142,7 +142,8 @@ class DB(UndoLogCompatible.UndoLogCompatible): ...@@ -142,7 +142,8 @@ class DB(UndoLogCompatible.UndoLogCompatible):
# No such version. We must have deleted the pool. # No such version. We must have deleted the pool.
# Just let the connection go. # Just let the connection go.
# We need to break circular refs to make it really go: # We need to break circular refs to make it really go.
# XXX What objects are involved in the cycle?
connection.__dict__.clear() connection.__dict__.clear()
return return
...@@ -491,11 +492,12 @@ class DB(UndoLogCompatible.UndoLogCompatible): ...@@ -491,11 +492,12 @@ class DB(UndoLogCompatible.UndoLogCompatible):
del pools[version] del pools[version]
pool, allocated, pool_lock = info pool, allocated, pool_lock = info
pooll.remove((pool, allocated)) pooll.remove((pool, allocated))
try: pool_lock.release() try:
except: pass pool_lock.release()
except: # XXX Do we actually expect this to fail?
pass
del pool[:] del pool[:]
del allocated[:] del allocated[:]
6L
def connectionDebugInfo(self): def connectionDebugInfo(self):
r=[] r=[]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment