DB_ENV->rep_process_message API Ref

#include <db.h>

int DB_ENV->rep_process_message(DB_ENV *env, DBT *control, DBT *rec, int envid, DB_LSN *ret_lsnp)


Description: DB_ENV->rep_process_message

The DB_ENV->rep_process_message method processes an incoming replication message sent by a member of the replication group to the local database environment.

The DB_ENV->rep_process_message method is not called by most replication applications. It should only be called by applications implementing their own network transport layer, explicitly holding replication group elections and handling replication messages outside of the replication manager framework.

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 method has additional return values:


DB_REP_DUPMASTER DB_REP_HOLDELECTION DB_REP_IGNORE DB_REP_ISPERM DB_REP_JOIN_FAILURE DB_REP_NEWSITE DB_REP_NOTPERM

Unless otherwise specified, the DB_ENV->rep_process_message method returns a non-zero error value on failure and 0 on success.

Parameters
control envid rec ret_lsnp


Class DB_ENV
See Also Replication and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.