MySQL 8.4.0
Source Code Documentation
plugin_utils.h File Reference
#include <errno.h>
#include <mysql/group_replication_priv.h>
#include <stddef.h>
#include <algorithm>
#include <chrono>
#include <map>
#include <queue>
#include <random>
#include <string>
#include <vector>
#include "my_dbug.h"
#include "my_systime.h"
#include "plugin/group_replication/include/plugin_psi.h"
#include "sql/malloc_allocator.h"
#include "string_with_len.h"

Go to the source code of this file.

Classes

struct  thread_state
 
class  Blocked_transaction_handler
 
class  Synchronized_queue_interface< T >
 Interface that defines a queue protected against multi thread access. More...
 
class  Synchronized_queue< T >
 
class  Abortable_synchronized_queue< T >
 Abortable synchronized queue extends synchronized queue allowing to abort methods waiting for elements on queue. More...
 
class  CountDownLatch
 Synchronization auxiliary class that allows one or more threads to wait on a given number of requirements. More...
 
class  Wait_ticket< K >
 Ticket register/wait auxiliary class. More...
 
class  Shared_writelock
 
class  Plugin_waitlock
 

Functions

void log_primary_member_details ()
 
void abort_plugin_process (const char *message)
 
void plugin_escape_string (std::string &string_to_escape)
 Simple method to escape character on a string. More...
 
template<typename T >
void vector_random_shuffle (std::vector< T, Malloc_allocator< T > > *v)
 Rearranges the given vector elements randomly. More...
 

Function Documentation

◆ abort_plugin_process()

void abort_plugin_process ( const char *  message)

◆ log_primary_member_details()

void log_primary_member_details ( )

◆ plugin_escape_string()

void plugin_escape_string ( std::string &  string_to_escape)

Simple method to escape character on a string.

Note
based on escape_string_for_mysql
the result is stored in the parameter string
Parameters
[in,out]string_to_escapethe string to escape

◆ vector_random_shuffle()

template<typename T >
void vector_random_shuffle ( std::vector< T, Malloc_allocator< T > > *  v)

Rearranges the given vector elements randomly.

Parameters
[in,out]vthe vector to shuffle