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.53.26; 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.30.09; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2003.01.18.13.48.59; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2001.10.15.03.47.31; author rse; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2003.01.18.14.04.57; author rse; state Exp; branches; next ; desc @@ 1.2 log @remove the ancient RPM 4.2.1 source tree copy @ text @
DbEnv::set_flags |
![]() ![]() |
#include <db_cxx.h>int DbEnv::set_flags(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 DbEnv::set_flags method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 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 DbEnv::set_flags method may fail and throw an exception or return a non-zero error for the following conditions:
The DbEnv::set_flags method may fail and throw an exception or return a non-zero error for errors specified for other Berkeley DB and C library or system methods. If a catastrophic error has occurred, the DbEnv::set_flags method may fail and either return DB_RUNRECOVERY or throw an exception encapsulating 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
@d17 1
a17 1
d30 1
a30 1
If onoff is
d35 3
a37 9
This call affects only the specified DbEnv handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv handle (and any handles opened within the scope of that handle). d43 8 a50 65
This call affects only the specified DbEnv handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv 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 DbEnv::open interface is called.
This call affects only the specified DbEnv handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv handle (and any
handles opened within the scope of that handle). For consistent
behavior across the environment, all DbEnv 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.
d87 2
d90 1
d93 1
a96 1
DbEnv::set_timeout,
d103 1
a103 1
@
1.1.1.3
log
@Import: RPM 4.0.5
@
text
@d2 1
a2 1
a3 1
a33 14
Calling DbEnv::set_flags with the DB_AUTO_COMMIT flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_CDB_ALLDB flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::open interface is called. a44 24
Calling DbEnv::set_flags with the DB_DIRECT_DB flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_DIRECT_LOG flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_NOLOCKING flag only affects the specified DbEnv 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. d55 6 a60 10
Calling DbEnv::set_flags with the DB_NOMMAP flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_NOPANIC flag only affects the specified DbEnv 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 DbEnv::set_flags with the DB_OVERWRITE flag only affects the specified DbEnv 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 DbEnv::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 DbEnv::set_flags with the DB_REGION_INIT flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_TXN_NOSYNC flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_TXN_WRITE_NOSYNC flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_YIELDCPU flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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. d132 4 a135 4 If a catastrophic error has occurred, the DbEnv::set_flags method may fail and either return DB_RUNRECOVERY or throw a DbRunRecoveryException, in which case all subsequent Berkeley DB calls will fail in the same way. d137 1 a137 1 DbEnv d139 24 a162 1 Database Environments and Related Methods @ 1.1.1.4 log @Import: RPM 4.1 @ text @d2 1 a2 1 d4 1 d35 14 d51 10 a60 8 basis rather than on a per-database basis. The DB_CDB_ALLDB flag may be used to configure Berkeley DB only before the DbEnv::open interface is called.
This call affects only the specified DbEnv handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv handle (and any handles opened within the scope of that handle). d99 10 a108 6
This call affects only the specified DbEnv handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv 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 DbEnv::open interface is called.
This call affects only the specified DbEnv handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv handle (and any handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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. d228 4 a231 4 If a catastrophic error has occurred, the DbEnv::set_flags method may fail and either return DB_RUNRECOVERY or throw an exception encapsulating DB_RUNRECOVERY, in which case all subsequent Berkeley DB calls will fail in the same way. d233 1 a233 1 DbEnv d235 1 a235 24 DbEnv::close, DbEnv::err, DbEnv::errx DbEnv::open, DbEnv::remove, DbEnv::set_alloc, DbEnv::set_cachesize, DbEnv::set_data_dir, DbEnv::set_errcall, DbEnv::set_errfile, DbEnv::set_error_stream, DbEnv::set_errpfx, DbEnv::set_feedback, DbEnv::set_flags, DbEnv::set_paniccall, DbEnv::set_recovery_init, DbEnv::set_rpc_server, DbEnv::set_shm_key, DbEnv::set_tas_spins, DbEnv::set_tmp_dir, DbEnv::set_timeout, DbEnv::set_verbose, DbEnv::strerror and DbEnv::version. @ 1.1.1.5 log @Import: RPM 4.1.1 @ text @d2 1 a2 1 a3 1 a33 14
Calling DbEnv::set_flags with the DB_AUTO_COMMIT flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_CDB_ALLDB flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::open interface is called. a44 24
Calling DbEnv::set_flags with the DB_DIRECT_DB flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_DIRECT_LOG flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_NOLOCKING flag only affects the specified DbEnv 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. d55 6 a60 10
Calling DbEnv::set_flags with the DB_NOMMAP flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_NOPANIC flag only affects the specified DbEnv 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 DbEnv::set_flags with the DB_OVERWRITE flag only affects the specified DbEnv 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 DbEnv::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 DbEnv::set_flags with the DB_REGION_INIT flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_TXN_NOSYNC flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_TXN_WRITE_NOSYNC flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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 DbEnv::set_flags with the DB_YIELDCPU flag only affects the specified DbEnv handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DbEnv 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. d132 4 a135 4 If a catastrophic error has occurred, the DbEnv::set_flags method may fail and either return DB_RUNRECOVERY or throw a DbRunRecoveryException, in which case all subsequent Berkeley DB calls will fail in the same way. d137 1 a137 1 DbEnv d139 24 a162 1 Database Environments and Related Methods @