head 1.2; access; symbols RPM_4_2_1:1.1.1.4 RPM_4_2:1.1.1.4 RPM_4_1_1:1.1.1.4 RPM_4_1:1.1.1.3 RPM_4_0_5:1.1.1.2 RPM_4_0_4:1.1.1.1 RPM:1.1.1; locks; strict; comment @# @; 1.2 date 2008.01.02.09.53.30; author rse; state dead; branches; next 1.1; commitid z4cpSiAhOCXk5PLs; 1.1 date 2002.01.08.00.30.10; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.01.08.00.30.10; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2003.01.18.13.48.59; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2001.12.06.00.08.06; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2003.01.18.14.04.58; author rse; state Exp; branches; next ; desc @@ 1.2 log @remove the ancient RPM 4.2.1 source tree copy @ text @
DbEnv::set_rep_transport |
![]() ![]() |
#include <db_cxx.h>int DbEnv::set_rep_transport(int envid, int (*send)(DB_ENV *dbenv, const Dbt *control, const Dbt *rec, int envid, u_int32_t flags));
The DbEnv::set_rep_transport method initializes the communication infrastructure for a database environment participating in a replicated application.
The envid parameter is the local environment's ID. It must be a positive integer and uniquely identify this Berkeley DB database environment (see Replication environment IDs for more information).
The send parameter is a callback interface used to transmit data using the replication application's communication infrastructure. The parameters to send are as follows:
The special identifier DB_EID_BROADCAST indicates that a message should be broadcast to every environment in the replication group. The application may use a true broadcast protocol, or may send the message in sequence to each machine with which it is in communication.
The flags value must be set to 0 or by bitwise inclusively OR'ing together one or more of the following values:
The send interface must return 0 on success and non-zero on failure. If the send interface fails, the message being sent is necessary to maintain database integrity, and the local log is not configured for synchronous flushing, the local log will be flushed; otherwise, any error from the send interface will be ignored.
It may sometimes be useful to pass application-specific data to the send interface; see Environment FAQ for a discussion on how to do this.
The flags parameter is currently unused, and must be set to 0.
The DbEnv::set_rep_transport method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.
The DbEnv::set_rep_transport method may fail and throw an exception or return a non-zero error for errors specified for other Berkeley DB and C library or system methods. If a catastrophic error has occurred, the DbEnv::set_rep_transport method may fail and either return DB_RUNRECOVERY or throw an exception encapsulating DB_RUNRECOVERY, in which case all subsequent Berkeley DB calls will fail in the same way.
![]() ![]() |
Copyright Sleepycat Software @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Import: RPM 4.0.4 @ text @@ 1.1.1.2 log @Import: RPM 4.0.5 @ text @d1 2 a2 2 a3 1 d54 1 a54 1
The DbEnv::set_rep_transport method configures operations performed using the specified DbEnv handle, not all operations performed on the underlying database environment.
The DbEnv::set_rep_transport interface may be called at any time during the life of the application. d78 4 a81 6 If a catastrophic error has occurred, the DbEnv::set_rep_transport method may fail and either return DB_RUNRECOVERY or throw a DbRunRecoveryException, in which case all subsequent Berkeley DB calls will fail in the same way.
The flags parameter is currently unused, and must be set to 0. d83 6 a88 4 If a catastrophic error has occurred, the DbEnv::set_rep_transport method may fail and either return DB_RUNRECOVERY or throw an exception encapsulating DB_RUNRECOVERY, in which case all subsequent Berkeley DB calls will fail in the same way. d90 1 a90 5 DbEnv::rep_start, DbEnv::rep_elect, DbEnv::rep_process_message, and DbEnv::set_rep_transport. @ 1.1.1.4 log @Import: RPM 4.1.1 @ text @d1 2 a2 2 a3 1 d54 1 a54 1
The DbEnv::set_rep_transport method configures operations performed using the specified DbEnv handle, not all operations performed on the underlying database environment.
The DbEnv::set_rep_transport interface may be called at any time during the life of the application. d78 4 a81 6 If a catastrophic error has occurred, the DbEnv::set_rep_transport method may fail and either return DB_RUNRECOVERY or throw a DbRunRecoveryException, in which case all subsequent Berkeley DB calls will fail in the same way.