The limit is not a hard limit, and the record that exceeds the limit
is the last record to be sent.
</p>
<p>
Record transmission throttling is turned on by default with a limit of
10MB.
</p>
<p>
If the values passed to the <codeclass="methodname">DB_ENV->rep_set_limit()</code>
method are both zero, then the transmission limit is turned off.
</p>
<p>
The database environment's replication subsystem may also be
configured using the environment's <ahref="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG"class="olink">DB_CONFIG</a> file. The syntax
of the entry in that file is a single line with the string
"rep_set_limit", one or more whitespace characters, and the limit
specified in two parts: the gigabytes and the bytes values. For
example, "rep_set_limit 0 1048576" sets a 1 megabyte limit.
Because the <ahref="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG"class="olink">DB_CONFIG</a> file is read when the database environment
is opened, it will silently overrule configuration done before
that time.
</p>
<p>
The <codeclass="methodname">DB_ENV->rep_set_limit()</code> method
configures a database environment, not only operations performed
using the specified <aclass="link"href="env.html"title="Chapter5. The DB_ENV Handle">DB_ENV</a>
handle.
</p>
<p>
The <codeclass="methodname">DB_ENV->rep_set_limit()</code> method may be
called at any time during the life of the application.
</p>
<p>
The <codeclass="methodname">DB_ENV->rep_set_limit()</code><span>
<span>
method returns a non-zero error value on failure and 0 on success.