### DB_ENV->rep_sync

`

###

    #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 method forces 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.

When a client application receives the DB_REP_NEWMASTER return value from DB_ENV->rep_process_message, indicating a new master and the application has configured delayed synchronization, the application must choose when to perform synchronization by using this method. Otherwise the client will remain unsynchronized and will ignore all new incoming log messages.

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

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

### Parameters

flags
  The flags parameter is currently unused, and must be set to 0.

### Class

DB_ENV

### See Also

Replication and Related Methods`

Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.