we are using 2.4.41, and have run into  MDB_MAP_FULL: Environment mapsize limit reached(-30792) "

Checking database size we see:

[openldap@soa-srv]$ grep maxsize slapd.conf

maxsize   4294967296

[openldap@soa-srv]$ mdb_stat -e openldap-data

Environment Info

  Map address: (nil)

  Map size: 1073741824

I was under the impression that maxsize is the same as map size. However, map size here is 1GB, whereas maxsize is 4GB, even after slapd is restarted. Why this apparent discrepancy?