MySQL 9.1.0
Source Code Documentation
mysql_ongoing_transactions_query_imp Class Reference

An implementation of mysql_ongoing_transactions_query service methods. More...

#include <mysql_ongoing_transaction_query_imp.h>

Static Public Member Functions

static mysql_service_status_t get_ongoing_server_transactions (unsigned long **thread_ids, unsigned long *length) noexcept
 Service that returns the list of thread ids for the currently running transactions in the server. More...
 

Detailed Description

An implementation of mysql_ongoing_transactions_query service methods.

Member Function Documentation

◆ get_ongoing_server_transactions()

mysql_service_status_t mysql_ongoing_transactions_query_imp::get_ongoing_server_transactions ( unsigned long **  thread_ids,
unsigned long *  length 
)
staticnoexcept

Service that returns the list of thread ids for the currently running transactions in the server.

Parameters
[out]thread_idsThe list of returned thread ids
[out]lengthThe number of transactions returned in the list
Note
the caller of this method must free the memory allocated for the list
Returns
false if everything when fine, true in case of failure

The documentation for this class was generated from the following files: