DB_ENV->rep_process_message |
![]() ![]() |
#include <db.h>int DB_ENV->rep_process_message(DB_ENV *env, DBT *control, DBT *rec, int *envid)
The DB_ENV->rep_process_message function processes an incoming replication message sent by a member of the replication group to the local database environment.
The rec and control parameters should reference a copy of the parameters specified by Berkeley DB for the rec and control parameters on the sending environment.
The envid parameter should contain the local identifier that corresponds to the environment that sent the message to be processed (see Replication environment IDs for more information).
For implementation reasons, all incoming replication messages must be processed using the same DB_ENV handle. It is not required that a single thread of control process all messages, only that all threads of control processing messages use the same handle.
The DB_ENV->rep_process_message function may return one of several special conditions:
Otherwise, the DB_ENV->rep_process_message function returns a non-zero error value on failure and 0 on success.
The DB_ENV->rep_process_message function 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->rep_process_message function may fail and return DB_RUNRECOVERY, in which case all subsequent Berkeley DB calls will fail in the same way.
![]() ![]() |