d01155c Ticket #197 - BDB backend - clear free page files to reduce changelog size

Authored and Committed by nhosoi 10 years ago
    Ticket #197 - BDB backend - clear free page files to reduce changelog size
    
    Bug description: Even if entries in the database and changes in the
    changelog database are deleted/trimmed, the unused pages of the data-
    bases were not returned to the filesystem.
    
    Fix description: This patch calls the compact API that Berkeley DB
    provides, which compacts the database.
    
    2 config parameters are introduced to specify the interval of the
    compact calls.
    Primary DBs (id2entry):
      dn: cn=config,cn=ldbm database,cn=plugins,cn=config
      nsslapd-db-compactdb-interval: <seconds>
    Changelog DBs:
      dn: cn=changelog5,cn=config
      nsslapd-changelogcompactdb-interval: <seconds>
    By default, 2592000 seconds (30 days)
    
    Reviewed by Rich (Thank you!!)
    
    https://fedorahosted.org/389/ticket/197