MySQL 8.4.2
Source Code Documentation
UDF_counter Class Reference

Class used to increase an atomic value when UDF functions are being initialized. More...

#include <udf_utils.h>

Public Member Functions

 UDF_counter ()
 
 ~UDF_counter ()
 
void succeeded ()
 

Static Public Member Functions

static void terminated ()
 
static bool is_zero ()
 

Static Public Attributes

static std::atomic< int > number_udfs_running
 

Private Attributes

bool success
 

Detailed Description

Class used to increase an atomic value when UDF functions are being initialized.

If initialization fails the value will be decreased.

number_udfs_running works together with plugin_is_stopping so when group replication is stopping, all new udf will fail to start and server will wait for the running ones to finish.

Constructor & Destructor Documentation

◆ UDF_counter()

UDF_counter::UDF_counter ( )
inline

◆ ~UDF_counter()

UDF_counter::~UDF_counter ( )
inline

Member Function Documentation

◆ is_zero()

static bool UDF_counter::is_zero ( )
inlinestatic

◆ succeeded()

void UDF_counter::succeeded ( )
inline

◆ terminated()

static void UDF_counter::terminated ( )
inlinestatic

Member Data Documentation

◆ number_udfs_running

std::atomic< int > UDF_counter::number_udfs_running
static

◆ success

bool UDF_counter::success
private

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