Library Version 11.2.5.2

DB_ENV->rep_elect
Prev | Chapter 5. Upgrading Berkeley DB 4.4 applications to Berkeley DB 4.5 | Next

## DB_ENV->rep_elect

Two of the historic arguments for the DB_ENV->rep_elect() method have been moved from the interface to separate methods in order to make them available within the new replication manager framework.

The priority parameter should now be explicitly set using the DB_ENV->rep_set_priority() method. To upgrade existing replication applications to the Berkeley DB 4.5 DB_ENV->rep_elect() interface, it may be simplest to insert a call to DB_ENV->rep_set_priority() immediately before the existing call to DB_ENV->rep_elect(). Alternatively, it may make more sense to add a single call to DB_ENV->rep_set_priority() during database environment configuration.

The timeout parameter should now be explicitly set using the DB_ENV->rep_set_timeout() method. To upgrade existing replication applications to the Berkeley DB 4.5 DB_ENV->rep_elect() interface, it may be simplest to insert a call to DB_ENV->rep_set_timeout() immediately before the existing call to DB_ENV->rep_elect(). Alternatively, it may make more sense to add a single call to DB_ENV->rep_set_timeout() during database environment configuration.

Prev | Up | Next
DB->set_isalive | Home | Replication method naming