DbTxn::get_priority()

#include <db_cxx.h>
 
int
DbTxn::get_priority(u_int32_t *priority);

The DbTxn::get_priority() method gets the priority value of the specified transaction.

The DbTxn::get_priority() method may be called at any time during the life of the transaction.

The DbTxn::get_priority() 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.

Parameters

priority

Upon return, the priority parameter will point to a value between 0 and 2^32-1.

Errors

The DbTxn::get_priority() method may fail and throw a DbException exception, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:

EINVAL

An invalid flag value or parameter was specified.

Class

DbEnv, DbTxn

See Also

Transaction Subsystem and Related Methods