Berkeley DB: DB_ENV->set_rep_limit
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++

# DB_ENV->set_rep_limit |

`

###

    #include <db.h>

    int
    DB_ENV->set_rep_limit(DB_ENV *env, u_int32_t gbytes, u_int32_t bytes);

# Description

The DB_ENV->set_rep_limit method imposes a limit on the amount of data that will be transmitted from a site during the course of a single call to DB_ENV->rep_process_message method.

The gbytes and bytes parameters together represent the maximum number of bytes that can be sent during a single call to DB_ENV->rep_process_message method.

The DB_ENV->set_rep_limit method configures a database environment, not only operations performed using the specified DB_ENV handle.

The DB_ENV->set_rep_limit interface may be called at any time during the life of the application.

The DB_ENV->set_rep_limit method returns a non-zero error value on failure and 0 on success.

# Errors

The DB_ENV->set_rep_limit method may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions. If a catastrophic error has occurred, the DB_ENV->set_rep_limit method may fail and return DB_RUNRECOVERY, in which case all subsequent Berkeley DB calls will fail in the same way.

# Class

DB_ENV

# See Also

Replication and Related Methods`

Copyright Sleepycat Software