~ubuntu-branches/ubuntu/jaunty/db4.3/jaunty

« back to all changes in this revision

Viewing changes to mp/mp_region.c

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2006-07-23 23:44:55 UTC
  • Revision ID: james.westby@ubuntu.com-20060723234455-aah0g0hy3198o6jl
Tags: 4.3.29-6
* Apply patch to fix region size calculations. 
* Bump to Standards-Version 3.7.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        int ret;
45
45
 
46
46
        /* Figure out how big each cache region is. */
47
 
        reg_size = (dbenv->mp_gbytes / dbenv->mp_ncache) * GIGABYTE;
48
 
        reg_size += ((dbenv->mp_gbytes %
49
 
            dbenv->mp_ncache) * GIGABYTE) / dbenv->mp_ncache;
 
47
        reg_size = GIGABYTE / dbenv->mp_ncache * dbenv->mp_gbytes;
50
48
        reg_size += dbenv->mp_bytes / dbenv->mp_ncache;
51
49
 
52
50
        /*