Berkeley DB Reference Guide: Release 3.2: DBENV->set_flags
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++

### Berkeley DB Reference Guide: Upgrading Berkeley DB Applications |

# Release 3.2: DBENV->set_flags

A new method has been added to the Berkeley DB environment handle, DBENV->set_flags. This interface currently takes three flags: DB_CDB_ALLDB, DB_NOMMAP and DB_TXN_NOSYNC. The first of these flags, DB_CDB_ALLDB, provides new functionality, allowing Berkeley DB Concurrent Data Store applications to do locking across multiple databases.

The other two flags, DB_NOMMAP and DB_TXN_NOSYNC, were specified to the DBENV->open method in previous releases. In the 3.2 release, they have been moved to the DBENV->set_flags function because this allows the database environment's value to be toggled during the life of the application as well as because it is a more appropriate place for them. Applications specifying either the DB_NOMMAP or DB_TXN_NOSYNC flags to the DBENV->open function should replace those flags with calls to the DBENV->set_flags function.

Copyright Sleepycat Software