|
|
DbEnv::rep_sync |
#include <db_cxx.h>int DbEnv::rep_sync(u_int32_t flags);
The DbEnv::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 DbEnv::rep_set_config method.
When a client application receives the DB_REP_NEWMASTER return value from DbEnv::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 DbEnv::rep_sync method may not be called before the DbEnv::open method has been called.
The DbEnv::rep_sync 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.
Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.