[Python-checkins] CVS: python/dist/src/Lib dumbdbm.py,1.4,1.5
A.M. Kuchling
python-dev@python.org
Mon, 10 Jul 2000 06:56:38 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv32761
Modified Files:
dumbdbm.py
Log Message:
Patch from Joe Eaton <jeaton@hostway.net> (SF#100741) to fix following problem:
There is a silly bug in the fall-back dumbdbm.py database package in
the Python 1.5.2 standard distro. This bug causes any changes to an
existing item to generate a new key, even when the key already
exists. After many updates, the .dir file used by dumbdbm grows to
a huge size, and can cause filesystem problems.
Index: dumbdbm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dumbdbm.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** dumbdbm.py 1999/04/27 12:21:17 1.4
--- dumbdbm.py 2000/07/10 13:56:35 1.5
***************
*** 121,125 ****
pos, siz = self._addval(val)
self._index[key] = pos, siz
- self._addkey(key, (pos, siz))
def __delitem__(self, key):
--- 121,124 ----