dberr_t
Definition: db0err.h:39
int32_t srv_conc_get_active_threads(void)
Get the count of threads active inside InnoDB.
Definition: srv0conc.cc:285
void srv_conc_force_exit_innodb(trx_t *trx)
This must be called when a thread exits InnoDB in a lock wait or at the end of an SQL statement.
Definition: srv0conc.cc:259
ulong srv_thread_concurrency
The following controls how many threads we let inside InnoDB concurrently: threads waiting for locks ...
Definition: srv0conc.cc:71
int32_t srv_conc_get_waiting_threads(void)
Get the count of threads waiting inside InnoDB.
Definition: srv0conc.cc:280
dberr_t srv_conc_enter_innodb(row_prebuilt_t *prebuilt)
Puts an OS thread to wait if there are too many concurrent threads (>= srv_thread_concurrency) inside...
Definition: srv0conc.cc:218
uint32_t srv_max_n_threads
We are prepared for a situation that we have this many threads waiting for a semaphore inside InnoDB.
Definition: os0thread.cc:53
void srv_conc_force_enter_innodb(trx_t *trx)
This lets a thread enter InnoDB regardless of the number of threads inside InnoDB.
Definition: srv0conc.cc:234
A struct for (sometimes lazily) prebuilt structures in an Innobase table handle used within MySQL; th...
Definition: row0mysql.h:515
trx_t * trx
current transaction handle
Definition: row0mysql.h:523
Definition: trx0trx.h:675