Library Version 18.1.40

New Information Available to Replicated Applications
Prev | Chapter 8. Upgrading Berkeley DB 12.1.6.2 applications to Berkeley DB 18.1 | Next

## New Information Available to Replicated Applications

Several small enhancements have been made to the base replication and replication manager APIs.

### New Error

`DB_ENV->rep_set_priority()` returns the new error `DB_REP_INELECT` if attempting to change the database environment's priority while an election is in progress.

### New Replication Manager Event

`DB_EVENT_REP_AUTOTAKEOVER`

The current process, which was previously a subordinate process, has taken over as the replication process.

### New Replication Manager Statistic

`ST_GROUP_STABLE_LOG_FILE`

The stable log file indicates the earliest log file which is still potentially needed by at least one site in the replication group and should not yet be archived.

### New Replication Manager Site Field

`MAX_ACK_LSN`

The log sequence number (LSN) of the most recent transaction acknowledged as durable by this remote client site.

### New Replication Manager Site Flag

`DB_REPMGR_ISELECTABLE`

This is a new `flags` value in the `DB_REPMGR_SITE` structures returned by `DB_ENV->repmgr_site_list()`. The `DB_REPMGR_ISELECTABLE` value means that the site can potentially be elected master.

Prev | Up | Next
New Replication Manager Flags | Home | New Utility `db_convert`