DB_ENV->rep_sync API Ref

#include <db.h>

int DB_ENV->rep_sync(DB_ENV *env, u_int32_t flags);


Description: DB_ENV->rep_sync

The DB_ENV->rep_sync method forces master synchronization to begin for this client. This method is the other half of setting the DB_REP_CONF_DELAYCLIENT flag via the DB_ENV->rep_set_config method.

If an application has configured delayed master synchronization, the application must synchronize explicitly (otherwise the client will remain out-of-date and will ignore all database changes forwarded from the replication group master). The DB_ENV->rep_sync method may be called any time after the client application learns that the new master has been established (by receiving a DB_EVENT_REP_NEWMASTER event notification).

The DB_ENV->rep_sync method may not be called before the DB_ENV->open method is called.

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

Parameters
flags


Class DB_ENV
See Also Replication and Related Methods

APIRef

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