From 07144a10471067232bc3be53ed94d75bef1f7006 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 10 Jul 2002 00:21:45 +0000 Subject: [PATCH] explicit database closing git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@852 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/backends/back_anydbm.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index b341c44..53a53c3 100644 --- a/roundup/backends/back_anydbm.py +++ b/roundup/backends/back_anydbm.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_anydbm.py,v 1.40 2002-07-09 04:19:09 richard Exp $ +#$Id: back_anydbm.py,v 1.41 2002-07-10 00:21:45 richard Exp $ ''' This module defines a backend that saves the hyperdatabase in a database chosen by anydbm. It is guaranteed to always be available in python @@ -351,6 +351,7 @@ class Database(FileStorage, hyperdb.Database): journal = marshal.loads(db[nodeid]) except KeyError: raise KeyError, 'no such %s %s'%(classname, nodeid) + db.close() res = [] for entry in journal: (nodeid, date_stamp, user, action, params) = entry @@ -509,6 +510,11 @@ class Database(FileStorage, hyperdb.Database): # #$Log: not supported by cvs2svn $ +#Revision 1.40 2002/07/09 04:19:09 richard +#Added reindex command to roundup-admin. +#Fixed reindex on first access. +#Also fixed reindexing of entries that change. +# #Revision 1.39 2002/07/09 03:02:52 richard #More indexer work: #- all String properties may now be indexed too. Currently there's a bit of -- 2.30.2