Skip to content

Commit f5bb585

Browse files
author
Richard Jones
committed
explicit database closing
1 parent b862d3b commit f5bb585

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

roundup/backends/back_anydbm.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.40 2002-07-09 04:19:09 richard Exp $
18+
#$Id: back_anydbm.py,v 1.41 2002-07-10 00:21:45 richard Exp $
1919
'''
2020
This module defines a backend that saves the hyperdatabase in a database
2121
chosen by anydbm. It is guaranteed to always be available in python
@@ -351,6 +351,7 @@ def getjournal(self, classname, nodeid):
351351
journal = marshal.loads(db[nodeid])
352352
except KeyError:
353353
raise KeyError, 'no such %s %s'%(classname, nodeid)
354+
db.close()
354355
res = []
355356
for entry in journal:
356357
(nodeid, date_stamp, user, action, params) = entry
@@ -509,6 +510,11 @@ def rollback(self):
509510

510511
#
511512
#$Log: not supported by cvs2svn $
513+
#Revision 1.40 2002/07/09 04:19:09 richard
514+
#Added reindex command to roundup-admin.
515+
#Fixed reindex on first access.
516+
#Also fixed reindexing of entries that change.
517+
#
512518
#Revision 1.39 2002/07/09 03:02:52 richard
513519
#More indexer work:
514520
#- all String properties may now be indexed too. Currently there's a bit of

0 commit comments

Comments
 (0)