~ubuntu-branches/ubuntu/wily/389-ds-base/wily

« back to all changes in this revision

Viewing changes to ldap/servers/slapd/back-ldbm/dblayer.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2015-06-24 11:47:50 UTC
  • mfrom: (0.3.2)
  • Revision ID: package-import@ubuntu.com-20150624114750-sla8v3fuxgp9ah4t
Tags: 1.3.3.12-1
* New upstream release
  - fix CVE-2015-3230 (Closes: #789202)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1116
1116
    if (!issane) {
1117
1117
        *cachesize = (size_t)((pages - procpages) * pagesize);
1118
1118
    }
1119
 
    /* We now compensate for DB's own compensation for metadata size 
1120
 
     * They increase the actual cache size by 25%, but only for sizes
1121
 
     * less than 500Meg.
1122
 
     */
1123
 
    if (*cachesize < 500*MEGABYTE) {
1124
 
        *cachesize = (size_t)((double)*cachesize * (double)0.8);
1125
 
    }
1126
1119
    
1127
1120
    return issane;
1128
1121
}