head 1.2; access; symbols RPM_4_2_1:1.1.1.4 RPM_4_2:1.1.1.4 RPM_4_1_1:1.1.1.4 RPM_4_1:1.1.1.3 RPM_4_0_5:1.1.1.2 RPM_4_0_4:1.1.1.1 RPM:1.1.1; locks; strict; comment @# @; 1.2 date 2008.01.02.09.53.29; author rse; state dead; branches; next 1.1; commitid z4cpSiAhOCXk5PLs; 1.1 date 2002.01.08.00.30.10; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.01.08.00.30.10; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2003.01.18.13.48.59; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2002.01.17.20.11.42; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2003.01.18.14.04.58; author rse; state Exp; branches; next ; desc @@ 1.2 log @remove the ancient RPM 4.2.1 source tree copy @ text @
DbLogc::logc_get |
![]() ![]() |
#include <db_cxx.h>int DbLogc::get(DbLsn *lsn, Dbt *data, u_int32_t flags);
The DbLogc::logc_get method retrieve records from the log according to the lsn and flags arguments.
The data field of the data structure is set to the record retrieved, and the size field indicates the number of bytes in the record. See Dbt for a description of other fields in the data structure. The DB_DBT_MALLOC, DB_DBT_REALLOC and DB_DBT_USERMEM flags may be specified for any Dbt used for data retrieval.
The flags value must be set to one of the following values:
If the log is empty, the DbLogc::logc_get method will return DB_NOTFOUND.
If the log is empty, the DbLogc::logc_get method will return DB_NOTFOUND.
If the log is empty, the DbLogc::logc_get method will return DB_NOTFOUND.
If the pointer has not been initialized via DB_FIRST, DB_LAST, DB_SET, DB_NEXT, or DB_PREV, DbLogc::logc_get will return the first (last) record in the log. If the last (first) log record has already been returned or the log is empty, the DbLogc::logc_get method will return DB_NOTFOUND.
If the log was opened with the DB_THREAD flag set, calls to DbLogc::logc_get with the DB_NEXT (DB_PREV) flag set will return EINVAL.
If the log pointer has not been initialized via DB_FIRST, DB_LAST, DB_SET, DB_NEXT, or DB_PREV, or if the log was opened with the DB_THREAD flag set, DbLogc::logc_get will return EINVAL.
Otherwise, the DbLogc::logc_get 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 DbLogc::logc_get method may fail and throw an exception or return a non-zero error for the following conditions:
The DB_CURRENT flag was set and the log pointer had not yet been initialized.
The DB_SET flag was set and the specified log sequence number does not exist.
The DbLogc::logc_get 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 DbLogc::logc_get 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.4 @ text @@ 1.1.1.2 log @Import: RPM 4.0.5 @ text @d1 2 a2 2 a3 1 d6 1 a6 1
The DbLogc::get method retrieve records from the log according to the d38 6 d48 1 a48 2
If the log is empty, the DbLogc::get method will return DB_NOTFOUND. d52 1 a52 2
If the log is empty, the DbLogc::get method will return DB_NOTFOUND. d57 7 a63 7
If the cursor has not been initialized via DB_FIRST, DB_LAST, DB_SET, DB_NEXT, or DB_PREV, DbLogc::get will return the first (last) record in the log. If the last (first) log record has already been returned or the log is empty, the DbLogc::get method will return DB_NOTFOUND. If the log was opened with the DB_THREAD flag set, calls to DbLogc::get with the DB_NEXT (DB_PREV) flag set, the DbLogc::get method either returns EINVAL or throws an exception that encapsulates EINVAL. d65 1 a65 1 If the log cursor has not been initialized via DB_FIRST, DB_LAST, d67 4 a70 4 flag set, the DbLogc::get method either returns EINVAL or throws an exception that encapsulates EINVAL.
Otherwise, the DbLogc::get method either returns a non-zero error value or throws an exception that d75 1 a75 1
The DbLogc::get method may fail and throw an exception or return a non-zero error for the following conditions: d83 5 a87 5
The DbLogc::get 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 DbLogc::get 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. d89 1 a89 1 DbEnv, DbLogc, DbLsn d91 16 a106 1 Logging Subsystem and Related Methods @ 1.1.1.3 log @Import: RPM 4.1 @ text @d1 2 a2 2 d4 1 d7 1 a7 1
The DbLogc::logc_get method retrieve records from the log according to the a38 6
If the log is empty, the DbLogc::logc_get method will return DB_NOTFOUND. d43 2 a44 1
If the log is empty, the DbLogc::logc_get method will return DB_NOTFOUND. d48 2 a49 1
If the log is empty, the DbLogc::logc_get method will return DB_NOTFOUND. d54 7 a60 7
If the pointer has not been initialized via DB_FIRST, DB_LAST, DB_SET, DB_NEXT, or DB_PREV, DbLogc::logc_get will return the first (last) record in the log. If the last (first) log record has already been returned or the log is empty, the DbLogc::logc_get method will return DB_NOTFOUND.
If the log was opened with the DB_THREAD flag set, calls to DbLogc::logc_get with the DB_NEXT (DB_PREV) flag set will return EINVAL. d62 1 a62 1
If the log pointer has not been initialized via DB_FIRST, DB_LAST, d64 4 a67 4 flag set, DbLogc::logc_get will return EINVAL.
Otherwise, the DbLogc::logc_get method either returns a non-zero error value or throws an exception that d73 1 a73 1
The DbLogc::logc_get method may fail and throw an exception or return a non-zero error for the following conditions: d81 5 a85 5
The DbLogc::logc_get 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 DbLogc::logc_get 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. d87 1 a87 1 DbEnv d89 1 a89 16 DbEnv::set_lg_bsize, DbEnv::set_lg_dir, DbEnv::set_lg_max, DbEnv::set_lg_regionmax, DbEnv::log_archive, DbEnv::log_compare, DbEnv::log_cursor, DbEnv::log_file, DbEnv::log_flush, DbEnv::log_put, DbEnv::log_register, DbEnv::log_stat, DbEnv::log_unregister, DbLogc::logc_close and DbLogc::logc_get. @ 1.1.1.4 log @Import: RPM 4.1.1 @ text @d1 2 a2 2 a3 1 d6 1 a6 1
The DbLogc::get method retrieve records from the log according to the d38 6 d48 1 a48 2
If the log is empty, the DbLogc::get method will return DB_NOTFOUND. d52 1 a52 2
If the log is empty, the DbLogc::get method will return DB_NOTFOUND. d57 7 a63 7
If the cursor has not been initialized via DB_FIRST, DB_LAST, DB_SET, DB_NEXT, or DB_PREV, DbLogc::get will return the first (last) record in the log. If the last (first) log record has already been returned or the log is empty, the DbLogc::get method will return DB_NOTFOUND. If the log was opened with the DB_THREAD flag set, calls to DbLogc::get with the DB_NEXT (DB_PREV) flag set, the DbLogc::get method either returns EINVAL or throws an exception that encapsulates EINVAL. d65 1 a65 1 If the log cursor has not been initialized via DB_FIRST, DB_LAST, d67 4 a70 4 flag set, the DbLogc::get method either returns EINVAL or throws an exception that encapsulates EINVAL.
Otherwise, the DbLogc::get method either returns a non-zero error value or throws an exception that d75 1 a75 1
The DbLogc::get method may fail and throw an exception or return a non-zero error for the following conditions: d83 5 a87 5
The DbLogc::get 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 DbLogc::get 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. d89 1 a89 1 DbEnv, DbLogc, DbLsn d91 16 a106 1 Logging Subsystem and Related Methods @