As per ur suggestions,tried changing
- MDB_PAGESIZE to 65536
- changing pb_lower and pb_upper to uint32_t.
As of now it is running fine for the existing testcases in openldap-2.4.36. However there were problems in 2.4.35. Also saw the comments in openldap-devel. So whether this will make to openldap 2.4.36?
The current plan is to fix this in OpenLDAP 2.5, and we are now halting new development in 2.4.
The fix is now available in mdb.master; currently you must compile with -DMDB_DEVEL to enable it. Since this is an incompatible DB format change, you should backup any existing DBs before using this option.