Berkeley DB Reference Guide: Release 4.7: Run-time configuration
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++

Berkeley DB Reference Guide: Upgrading Berkeley DB Applications |

Release 4.7: Run-time configuration

In historic Berkeley DB releases, there were separate sleep and yield functions to be configured at run-time using the db_env_set_func_sleep and db_env_set_func_yield functions. These functions have been merged in the Berkeley DB 4.7 release. The replacement function should always yield the processor, and optionally wait for some period of time before allowing the thread to run again.

Applications using the Berkeley DB run-time configuration interfaces should merge the functionality of their sleep and yield functions into a single configuration function.

In the 4.7 Berkeley DB release, the db_env_set_func_map and db_env_set_func_unmap functions have been replaced. This change fixes problems where applications using the Berkeley DB run-time configuration interfaces could not open multiple DB_ENV handles for the same database environment in a single application or join existing database environments from within multiple processes.

Applications wanting to replace the Berkeley DB region creation functionality should replace their db_env_set_func_map and db_env_set_func_unmap calls with a call to the db_env_set_func_region_map function. Applications wanting to replace the Berkeley DB region file mapping functionality should replace their db_env_set_func_map and db_env_set_func_unmap calls with a call to the db_env_set_func_file_map function.

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