home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!network.ucsd.edu!news!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Newsgroups: comp.lang.perl
- Subject: Re: reset & dbm file bug?
- Message-ID: <1992Aug13.200021.15963@netlabs.com>
- Date: 13 Aug 92 20:00:21 GMT
- Article-I.D.: netlabs.1992Aug13.200021.15963
- References: <lgy.713469986@landau>
- Sender: news@netlabs.com
- Organization: NetLabs, Inc.
- Lines: 17
- Nntp-Posting-Host: scalpel.netlabs.com
-
- In article <lgy.713469986@landau> lgy@phys.washington.edu (Laurence Yaffe) writes:
- :
- : It appears that stale data is sometimes returned after a reset on an
- : assoc array bound to a dbm file. The following test program illustrates
- : this by binding the same dbm file to two different assoc arrays.
- : The same problem occurs if a dbm file is opened by one processes and then
- : changed by a different process - after a 'reset' in the first process
- : values returned by the assoc array are inconsistent with the data on disk.
- : This occurs in both versions 4.0.19 (with ndbm support) on a MIPS 3230,
- : and 4.0.10 on a Sun. Bug or misunderstanding?
-
- $ grep dbmclose bugs/patch*
- patch20: Subject: dbmclose(%array) didn't work
-
- If you're stuck with an old version, the workaround is to omit the %.
-
- Larry
-