📄 env.so
字号:
m4_comment([$Id: env.so,v 1.8 2005/08/03 21:24:02 bostic Exp $])m4_ref_title(Upgrading m4_db Applications, Release 4.0: db_env_set_XXX,, upgrade.4.0/txn, upgrade.4.0/rpc)m4_p([dnlThe db_env_set_region_init function was removed in the 4.0 release andreplaced with the m4_ref(DB_REGION_INIT) flag to them4_refT(dbenv_set_flags). This is an interface change: historically,the db_env_set_region_init function operated on the entire m4_dblibrary, not a single environment. The new method only operates ona single m4_ref(DbEnv) handle (and any handles created in the scope ofthat handle). Applications calling the db_env_set_region_init functionshould update their calls: calls to the historic routine with anargument of 1 (0) are equivalent to calling m4_ref(dbenv_set_flags) withthe m4_ref(DB_REGION_INIT) flag and an argument of 1 (0).])m4_p([dnlThe db_env_set_tas_spins function was removed in the 4.0 release andreplaced with the DB_ENV-__GT__set_tas_spins method. This is aninterface change: historically, the db_env_set_tas_spins functionoperated on the entire m4_db library, not a single environment. The newmethod only operates on a single m4_ref(DbEnv) handle (and any handlescreated in the scope of that handle). Applications calling thedb_env_set_tas_spins function should update their calls: calls to thehistoric routine are equivalent to calling DB_ENV-__GT__set_tas_spinswith the same argument. In addition, for consistent behavior, allm4_ref(DbEnv) handles opened by the application should make the sameconfiguration call, or the value will need to be entered into theenvironment's m4_path(DB_CONFIG) file.])m4_p([dnlAlso, three of the standard m4_db debugging interfaces changed in the4.0 release. It is quite unlikely that m4_db applications use theseinterfaces.])m4_p([dnlThe DB_ENV-__GT__set_mutexlocks method was removed in the 4.0 releaseand replaced with the m4_ref(DB_NOLOCKING) flag to them4_refT(dbenv_set_flags). Applications calling theDB_ENV-__GT__set_mutexlocks method should update their calls: callsto the historic routine with an argument of 1 (0) are equivalent tocalling m4_ref(dbenv_set_flags) with the m4_ref(DB_NOLOCKING) flag andan argument of 1 (0).])m4_p([dnlThe db_env_set_pageyield function was removed in the 4.0 release andreplaced with the m4_ref(DB_YIELDCPU) flag to them4_refT(dbenv_set_flags). This is an interface change: historically,the db_env_set_pageyield function operated on the entire m4_db library,not a single environment. The new method only operates on a singlem4_ref(DbEnv) handle (and any handles created in the scope of thathandle). Applications calling the db_env_set_pageyield function shouldupdate their calls: calls to the historic routine with an argument of 1(0) are equivalent to calling m4_ref(dbenv_set_flags) with them4_ref(DB_YIELDCPU) flag and an argument of 1 (0). In addition, allm4_ref(DbEnv) handles opened by the application will need to make thesame call, or the m4_ref(DB_YIELDCPU) flag will need to be entered intothe environment's m4_path(DB_CONFIG) file.])m4_p([dnlThe db_env_set_panicstate function was removed in the 4.0 release,replaced with the m4_ref(DB_PANIC_ENVIRONMENT) and m4_ref(DB_NOPANIC)flags to the m4_refT(dbenv_set_flags). (Them4_ref(DB_PANIC_ENVIRONMENT) flag will cause an environment to panic,affecting all threads of control using that environment. Them4_ref(DB_NOPANIC) flag will cause a single m4_ref(DbEnv) handle toignore the current panic state of the environment.) This is aninterface change: historically the db_env_set_panicstate functionoperated on the entire m4_db library, not a single environment.Applications calling the db_env_set_panicstate function should updatetheir calls, replacing the historic call with a call tom4_ref(dbenv_set_flags) and the appropriate flag, depending on theirusage of the historic interface.])m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -