Issue 7471 - MDB resize on the fly is broken in RE24
Summary: MDB resize on the fly is broken in RE24
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-11 18:58 UTC by Quanah Gibson-Mount
Modified: 2014-08-01 21:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Quanah Gibson-Mount 2012-12-11 18:58:56 UTC
Full_Name: Quanah Gibson-Mount
Version: RE24 12/11/2012
OS: Linux 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (74.196.25.250)


In the 2.4.33 release of OpenLDAP, it was possibly to resize an MDB database by
modifying olcDbMaxsize while slapd was running.  This functionality no longer
works in current RE24.  This is highly desirable behavior, as one may wish to
reduce the maximum DB size after determining how large the actual MDB is.  With
current RE24, changing olcDbMaxsize to a smaller value leaves the data.mdb file
the same size as it was before.

2.4.33 behavior:

80GB initial maxsize: zimbra@zre-ldap002:~$ ls -l data/ldap/mdb/db
total 692
-rw------- 1 zimbra zimbra 85899345920 Dec 11 10:46 data.mdb

After modifying cn=config with a 10MB maxsize:

zimbra@zre-ldap002:~$ ls -l data/ldap/mdb/db
total 692
-rw------- 1 zimbra zimbra 10485760 Dec 11 10:51 data.mdb


Comment 1 Quanah Gibson-Mount 2012-12-12 00:07:51 UTC
changed notes
changed state Open to Release
moved from Incoming to Software Bugs
Comment 2 Quanah Gibson-Mount 2013-03-05 02:25:06 UTC
changed notes
changed state Release to Closed
Comment 3 OpenLDAP project 2014-08-01 21:04:45 UTC
Fixed in master
Fixed in RE24