[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#8622) Getting MDB_CORRUPTED when deleting within a DUPSORT database
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8622) Getting MDB_CORRUPTED when deleting within a DUPSORT database
- From: hyc@symas.com
- Date: Thu, 23 Mar 2017 21:28:20 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
h.b.furuseth@usit.uio.no wrote:
> I wrote:
>> URL: http://www.openldap.org/lists/openldap-technical/201703/msg00043.html
>
> malloc (sizeof (KeyDataType) * recordCount); in the test program should be
> calloc (recordCount, sizeof (KeyDataType)); to avoid writing uninit'ed data.
>
> And the test can be a lot smaller and faster:
>
> static long size = 50000000;
> static int recordCount = 600000;
> static int majorIdCount = 2500;
> static int minorIdCount = 5000;
Fixed now in git.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/