Library Version 12.1.6.2

set_timeout
Prev | Appendix B. DB_CONFIG Parameter Reference | Next

## set_timeout

Sets timeout values, in microseconds, for locks or transactions in the database environment, the wait time for a process to exit the environment when DB_REGISTER recovery is needed, and how frequently to check for failed processes during mutex waits.

The syntax for setting timeout value for database environment's lock, before recovery is started, and transaction is as follows:

- DB_SET_LOCK_TIMEOUT

  Configures the database environment's lock timeout value. The syntax of the entry in the DB_CONFIG file is a single line with the string `set_lock_timeout`, one or more whitespace characters, and the lock timeout value.

- DB_SET_MUTEX_FAILCHK_TIMEOUT

  If failchk broadcasting has been configured, then this sets the timeout value on how long a thread will wait for a mutex lock before checking whether DbEnv::failchk() has marked the mutex as failed. The default is to check once every second. The syntax of the entry in the DB_CONFIG file is a single line with the string `set_mutex_failchk_timeout`, one or more whitespace characters, and the wait timeout value.

  If failchk broadcasting has not been configured, then setting this timeout value results in an error.

- DB_SET_REG_TIMEOUT

  Sets the timeout value on how long to wait for processes to exit the environment before recovery is started. The syntax of the entry in the DB_CONFIG file is a single line with the string `set_reg_timeout`, one or more whitespace characters, and the wait timeout value.

- DB_SET_TXN_TIMEOUT

  Sets the timeout value for transactions in this database environment. The syntax of the entry in the DB_CONFIG file is a single line with the string `set_txn_timeout`, one or more whitespace characters, and the transaction timeout value.

For more information, see DbEnv::set_timeout().

Prev | Up | Next
set_thread_count | Home | set_tmp_dir