Set the maximum size for the file to be <spanclass="bold"><strong>gbytes</strong></span> gigabytes plus <spanclass="bold"><strong>bytes</strong></span>. Attempts to allocate new pages in the
file after the limit has been reached will fail.
</p>
<p>
To set the maximum file size for a particular database, call the
<codeclass="methodname">DB_MPOOLFILE->set_maxsize()</code> method using the
<aclass="link"href="memp.html"title="Chapter8. The DB_MPOOLFILE Handle">DB_MPOOLFILE</a> handle stored
in the <spanclass="bold"><strong>mpf</strong></span> field of the
<aclass="link"href="db.html"title="Chapter2. The DB Handle">DB</a> handle. Attempts to insert
new items into the database after the limit has been reached may fail.
</p>
<p>
The <codeclass="methodname">DB_MPOOLFILE->set_maxsize()</code> method configures a file in the
cache, not only operations performed using the specified
<aclass="link"href="memp.html"title="Chapter8. The DB_MPOOLFILE Handle">DB_MPOOLFILE</a> handle.
</p>
<p>
The <codeclass="methodname">DB_MPOOLFILE->set_maxsize()</code> method may be called at any time
during the life of the application.
</p>
<p>
The <codeclass="methodname">DB_MPOOLFILE->set_maxsize()</code><span>
<span>
method returns a non-zero error value on failure and 0 on success.
The maximum size of the file is set to <spanclass="bold"><strong>gbytes</strong></span> gigabytes plus <spanclass="bold"><strong>bytes</strong></span>.
The maximum size of the file is set to <spanclass="bold"><strong>gbytes</strong></span> gigabytes plus <spanclass="bold"><strong>bytes</strong></span>.
<aclass="link"href="env.html"title="Chapter5. The DB_ENV Handle">DB_ENV</a>, <aclass="link"href="memp.html"title="Chapter8. The DB_MPOOLFILE Handle">DB_MPOOLFILE</a>