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">DbMpoolFile::set_maxsize()</code> method using the
<aclass="link"href="memp.html"title="Chapter9. The DbMpoolFile Handle">DbMpoolFile</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">DbMpoolFile::set_maxsize()</code> method configures a file in the
cache, not only operations performed using the specified
<aclass="link"href="memp.html"title="Chapter9. The DbMpoolFile Handle">DbMpoolFile</a> handle.
</p>
<p>
The <codeclass="methodname">DbMpoolFile::set_maxsize()</code> method may be called at any time
during the life of the application.
</p>
<p>
The <codeclass="methodname">DbMpoolFile::set_maxsize()</code><span>
<span>
method either returns a non-zero error value or throws an
exception that encapsulates a non-zero error value on
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 DbEnv Handle">DbEnv</a>, <aclass="link"href="memp.html"title="Chapter9. The DbMpoolFile Handle">DbMpoolFile</a>