Berkeley DB Reference Guide:
Upgrading Berkeley DB Applications
PrevRefNext

Release 4.5: 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.


PrevRefNext

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