head 1.2; access; symbols RPM_4_2_1:1.1.1.5 RPM_4_2:1.1.1.5 RPM_4_1_1:1.1.1.5 RPM_4_1:1.1.1.4 RPM_4_0_5:1.1.1.3 RPM_4_0_4:1.1.1.2 RPM_4_0_3:1.1.1.1 RPM:1.1.1; locks; strict; comment @# @; 1.2 date 2008.01.02.09.52.53; author rse; state dead; branches; next 1.1; commitid z4cpSiAhOCXk5PLs; 1.1 date 2001.07.23.20.45.36; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.07.23.20.45.36; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2002.01.08.00.31.26; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2003.01.18.13.48.56; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2001.10.15.03.47.30; author rse; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2003.01.18.14.04.56; author rse; state Exp; branches; next ; desc @@ 1.2 log @remove the ancient RPM 4.2.1 source tree copy @ text @
DB_ENV->set_flags |
![]() ![]() |
#include <db.h>int DB_ENV->set_flags(DB_ENV *dbenv, u_int32_t flags, int onoff);
The flags value must be set to 0 or by bitwise inclusively OR'ing together one or more of the following values: If onoff is set to zero, the specified flags are cleared; otherwise they are set.
The number of transactions potentially at risk is governed by how often the log is checkpointed (see db_checkpoint for more information) and how many log updates can fit into the log buffer.
The DB_ENV->set_flags function returns a non-zero error value on failure and 0 on success.
The database environment's flag values may also be set using the environment's DB_CONFIG file. The syntax of the entry in that file is a single line with the string "set_flags", one or more whitespace characters, and the interface flag argument as a string; for example, "set_flags DB_TXN_NOSYNC". Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time.
The DB_ENV->set_flags function may fail and return a non-zero error for the following conditions:
The DB_ENV->set_flags function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions. If a catastrophic error has occurred, the DB_ENV->set_flags function may fail and return DB_RUNRECOVERY, in which case all subsequent Berkeley DB calls will fail in the same way.
![]() ![]() |
Copyright Sleepycat Software @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Import: RPM 4.0.3 @ text @@ 1.1.1.2 log @Import: RPM 4.0.4 @ text @d30 1 a30 1 If onoff is d35 3 a37 9
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either make this same call or the DB_CDB_ALLDB flag should be specified in the DB_CONFIG configuration file. d39 3 a41 5
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). d43 8 a50 65
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either make this same call or the DB_NOMMAP flag should be specified in the DB_CONFIG configuration file.
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle).
This call affects all threads of control using the database environment.
The DB_REGION_INIT flag may be used to configure Berkeley DB only before the DB_ENV->open interface is called.
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either make this same call or the DB_REGION_INIT flag should be specified in the DB_CONFIG configuration file.
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either make this same call or the DB_TXN_NOSYNC flag should be specified in the DB_CONFIG configuration file.
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either make this same call or the DB_YIELDCPU flag should be specified in the DB_CONFIG configuration file. d83 2 d86 1 d89 1 d91 1 a91 1 DB_ENV->set_tas_spins, a92 1 DB_ENV->set_timeout, @ 1.1.1.3 log @Import: RPM 4.0.5 @ text @d2 1 a2 1 a3 1 a33 14
Calling DB_ENV->set_flags with the DB_AUTO_COMMIT flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_AUTO_COMMIT flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_AUTO_COMMIT flag may be used to configure Berkeley DB at any time during the life of the application. d36 8 a43 10 basis rather than on a per-database basis.
Calling DB_ENV->set_flags with the DB_CDB_ALLDB flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_CDB_ALLDB flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_CDB_ALLDB flag may be used to configure Berkeley DB only before the DB_ENV->open interface is called. a44 24
Calling DB_ENV->set_flags with the DB_DIRECT_DB flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_DIRECT_DB flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_DIRECT_DB flag may be used to configure Berkeley DB at any time during the life of the application.
Calling DB_ENV->set_flags with the DB_DIRECT_LOG flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_DIRECT_LOG flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_DIRECT_LOG flag may be used to configure Berkeley DB at any time during the life of the application. d48 3 a50 6
Calling DB_ENV->set_flags with the DB_NOLOCKING flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle).
The DB_NOLOCKING flag may be used to configure Berkeley DB at any time during the life of the application. d53 1 a53 1 description of the DB_ENV->set_mp_mmapsize method for further d55 6 a60 10
Calling DB_ENV->set_flags with the DB_NOMMAP flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_NOMMAP flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_NOMMAP flag may be used to configure Berkeley DB at any time during the life of the application. d65 3 a67 17
Calling DB_ENV->set_flags with the DB_NOPANIC flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle).
The DB_NOPANIC flag may be used to configure Berkeley DB at any time during the life of the application.
Calling DB_ENV->set_flags with the DB_OVERWRITE flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle).
The DB_OVERWRITE flag may be used to configure Berkeley DB at any time during the life of the application. d74 3 a76 6
Calling DB_ENV->set_flags with the DB_PANIC_ENVIRONMENT flag affects the database environment, including all threads of control accessing the database environment.
The DB_PANIC_ENVIRONMENT flag may be used to configure Berkeley DB at any time during the life of the application. d86 22 a107 49
Calling DB_ENV->set_flags with the DB_REGION_INIT flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_REGION_INIT flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_REGION_INIT flag may be used to configure Berkeley DB at any time during the life of the application.
Calling DB_ENV->set_flags with the DB_TXN_NOSYNC flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_TXN_NOSYNC flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_TXN_NOSYNC flag may be used to configure Berkeley DB at any time during the life of the application.
Calling DB_ENV->set_flags with the DB_TXN_WRITE_NOSYNC flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_TXN_WRITE_NOSYNC flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_TXN_WRITE_NOSYNC flag may be used to configure Berkeley DB at any time during the life of the application. d111 5 a115 9
Calling DB_ENV->set_flags with the DB_YIELDCPU flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_YIELDCPU flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_YIELDCPU flag may be used to configure Berkeley DB at any time during the life of the application. d117 1 a117 1
The DB_ENV->set_flags method returns a non-zero error value on failure and 0 on success. d126 1 a126 1
The DB_ENV->set_flags method may fail and return a non-zero error for the following conditions: d130 4 a133 6
The DB_ENV->set_flags method may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions. If a catastrophic error has occurred, the DB_ENV->set_flags method may fail and return DB_RUNRECOVERY, in which case all subsequent Berkeley DB calls will fail in the same way.
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either make this same call or the DB_CDB_ALLDB flag should be specified in the DB_CONFIG configuration file. d62 24 d89 6 a94 3
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). d97 1 a97 1 description of the DB_ENV->set_mp_mmapsize function for further d99 10 a108 6
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either make this same call or the DB_NOMMAP flag should be specified in the DB_CONFIG configuration file. d113 17 a129 3
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). d136 6 a141 3
This call affects all threads of control using the database environment. d151 49 a199 22
The DB_REGION_INIT flag may be used to configure Berkeley DB only before the DB_ENV->open interface is called.
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either make this same call or the DB_REGION_INIT flag should be specified in the DB_CONFIG configuration file.
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either make this same call or the DB_TXN_NOSYNC flag should be specified in the DB_CONFIG configuration file. d203 9 a211 5
This call affects only the specified DB_ENV handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either make this same call or the DB_YIELDCPU flag should be specified in the DB_CONFIG configuration file. d213 1 a213 1
The DB_ENV->set_flags function returns a non-zero error value on failure and 0 on success. d222 1 a222 1
The DB_ENV->set_flags function may fail and return a non-zero error for the following conditions: d226 6 a231 4
The DB_ENV->set_flags function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions. If a catastrophic error has occurred, the DB_ENV->set_flags function may fail and return DB_RUNRECOVERY, in which case all subsequent Berkeley DB calls will fail in the same way. d233 1 a233 24 db_env_create, DB_ENV->close, DB_ENV->err, DB_ENV->errx DB_ENV->open, DB_ENV->remove, DB_ENV->set_alloc, DB_ENV->set_cachesize, DB_ENV->set_data_dir, DB_ENV->set_errcall, DB_ENV->set_errfile, DB_ENV->set_errpfx, DB_ENV->set_feedback, DB_ENV->set_flags, DB_ENV->set_paniccall, DB_ENV->set_recovery_init, DB_ENV->set_rpc_server, DB_ENV->set_shm_key, DB_ENV->set_tas_spins, DB_ENV->set_tmp_dir, DB_ENV->set_timeout, DB_ENV->set_verbose, db_strerror and db_version. @ 1.1.1.5 log @Import: RPM 4.1.1 @ text @d2 1 a2 1 a3 1 a33 14
Calling DB_ENV->set_flags with the DB_AUTO_COMMIT flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_AUTO_COMMIT flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_AUTO_COMMIT flag may be used to configure Berkeley DB at any time during the life of the application. d36 8 a43 10 basis rather than on a per-database basis.
Calling DB_ENV->set_flags with the DB_CDB_ALLDB flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_CDB_ALLDB flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_CDB_ALLDB flag may be used to configure Berkeley DB only before the DB_ENV->open interface is called. a44 24
Calling DB_ENV->set_flags with the DB_DIRECT_DB flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_DIRECT_DB flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_DIRECT_DB flag may be used to configure Berkeley DB at any time during the life of the application.
Calling DB_ENV->set_flags with the DB_DIRECT_LOG flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_DIRECT_LOG flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_DIRECT_LOG flag may be used to configure Berkeley DB at any time during the life of the application. d48 3 a50 6
Calling DB_ENV->set_flags with the DB_NOLOCKING flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle).
The DB_NOLOCKING flag may be used to configure Berkeley DB at any time during the life of the application. d53 1 a53 1 description of the DB_ENV->set_mp_mmapsize method for further d55 6 a60 10
Calling DB_ENV->set_flags with the DB_NOMMAP flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_NOMMAP flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_NOMMAP flag may be used to configure Berkeley DB at any time during the life of the application. d65 3 a67 17
Calling DB_ENV->set_flags with the DB_NOPANIC flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle).
The DB_NOPANIC flag may be used to configure Berkeley DB at any time during the life of the application.
Calling DB_ENV->set_flags with the DB_OVERWRITE flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle).
The DB_OVERWRITE flag may be used to configure Berkeley DB at any time during the life of the application. d74 3 a76 6
Calling DB_ENV->set_flags with the DB_PANIC_ENVIRONMENT flag affects the database environment, including all threads of control accessing the database environment.
The DB_PANIC_ENVIRONMENT flag may be used to configure Berkeley DB at any time during the life of the application. d86 22 a107 49
Calling DB_ENV->set_flags with the DB_REGION_INIT flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_REGION_INIT flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_REGION_INIT flag may be used to configure Berkeley DB at any time during the life of the application.
Calling DB_ENV->set_flags with the DB_TXN_NOSYNC flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_TXN_NOSYNC flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_TXN_NOSYNC flag may be used to configure Berkeley DB at any time during the life of the application.
Calling DB_ENV->set_flags with the DB_TXN_WRITE_NOSYNC flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_TXN_WRITE_NOSYNC flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_TXN_WRITE_NOSYNC flag may be used to configure Berkeley DB at any time during the life of the application. d111 5 a115 9
Calling DB_ENV->set_flags with the DB_YIELDCPU flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_YIELDCPU flag or the flag should be specified in the DB_CONFIG configuration file.
The DB_YIELDCPU flag may be used to configure Berkeley DB at any time during the life of the application. d117 1 a117 1
The DB_ENV->set_flags method returns a non-zero error value on failure and 0 on success. d126 1 a126 1
The DB_ENV->set_flags method may fail and return a non-zero error for the following conditions: d130 4 a133 6
The DB_ENV->set_flags method may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions. If a catastrophic error has occurred, the DB_ENV->set_flags method may fail and return DB_RUNRECOVERY, in which case all subsequent Berkeley DB calls will fail in the same way.