MySQL  8.0.21
Source Code Documentation
semisync_master.cc File Reference
#include "plugin/semisync/semisync_master.h"
#include <assert.h>
#include <time.h>
#include "my_byteorder.h"
#include "my_compiler.h"
#include "my_systime.h"
#include "sql/mysqld.h"

Macros

#define TIME_THOUSAND   1000
 
#define TIME_MILLION   1000000
 
#define TIME_BILLION   1000000000
 

Functions

static int getWaitTime (const struct timespec &start_ts)
 
static unsigned long long timespec_to_usec (const struct timespec *ts)
 

Variables

bool rpl_semi_sync_master_enabled
 
unsigned long rpl_semi_sync_master_timeout
 
unsigned long rpl_semi_sync_master_trace_level
 
char rpl_semi_sync_master_status = 0
 
unsigned long rpl_semi_sync_master_yes_transactions = 0
 
unsigned long rpl_semi_sync_master_no_transactions = 0
 
unsigned long rpl_semi_sync_master_off_times = 0
 
unsigned long rpl_semi_sync_master_timefunc_fails = 0
 
unsigned long rpl_semi_sync_master_wait_timeouts = 0
 
unsigned long rpl_semi_sync_master_wait_sessions = 0
 
unsigned long rpl_semi_sync_master_wait_pos_backtraverse = 0
 
unsigned long rpl_semi_sync_master_avg_trx_wait_time = 0
 
unsigned long long rpl_semi_sync_master_trx_wait_num = 0
 
unsigned long rpl_semi_sync_master_avg_net_wait_time = 0
 
unsigned long long rpl_semi_sync_master_net_wait_num = 0
 
unsigned long rpl_semi_sync_master_clients = 0
 
unsigned long long rpl_semi_sync_master_net_wait_time = 0
 
unsigned long long rpl_semi_sync_master_trx_wait_time = 0
 
bool rpl_semi_sync_master_wait_no_slave = true
 
unsigned int rpl_semi_sync_master_wait_for_slave_count = 1
 

Macro Definition Documentation

◆ TIME_BILLION

#define TIME_BILLION   1000000000

◆ TIME_MILLION

#define TIME_MILLION   1000000

◆ TIME_THOUSAND

#define TIME_THOUSAND   1000

Function Documentation

◆ getWaitTime()

static int getWaitTime ( const struct timespec &  start_ts)
static

◆ timespec_to_usec()

static unsigned long long timespec_to_usec ( const struct timespec *  ts)
static

Variable Documentation

◆ rpl_semi_sync_master_avg_net_wait_time

unsigned long rpl_semi_sync_master_avg_net_wait_time = 0

◆ rpl_semi_sync_master_avg_trx_wait_time

unsigned long rpl_semi_sync_master_avg_trx_wait_time = 0

◆ rpl_semi_sync_master_clients

unsigned long rpl_semi_sync_master_clients = 0

◆ rpl_semi_sync_master_enabled

bool rpl_semi_sync_master_enabled

◆ rpl_semi_sync_master_net_wait_num

unsigned long long rpl_semi_sync_master_net_wait_num = 0

◆ rpl_semi_sync_master_net_wait_time

unsigned long long rpl_semi_sync_master_net_wait_time = 0

◆ rpl_semi_sync_master_no_transactions

unsigned long rpl_semi_sync_master_no_transactions = 0

◆ rpl_semi_sync_master_off_times

unsigned long rpl_semi_sync_master_off_times = 0

◆ rpl_semi_sync_master_status

char rpl_semi_sync_master_status = 0

◆ rpl_semi_sync_master_timefunc_fails

unsigned long rpl_semi_sync_master_timefunc_fails = 0

◆ rpl_semi_sync_master_timeout

unsigned long rpl_semi_sync_master_timeout

◆ rpl_semi_sync_master_trace_level

unsigned long rpl_semi_sync_master_trace_level

◆ rpl_semi_sync_master_trx_wait_num

unsigned long long rpl_semi_sync_master_trx_wait_num = 0

◆ rpl_semi_sync_master_trx_wait_time

unsigned long long rpl_semi_sync_master_trx_wait_time = 0

◆ rpl_semi_sync_master_wait_for_slave_count

unsigned int rpl_semi_sync_master_wait_for_slave_count = 1

◆ rpl_semi_sync_master_wait_no_slave

bool rpl_semi_sync_master_wait_no_slave = true

◆ rpl_semi_sync_master_wait_pos_backtraverse

unsigned long rpl_semi_sync_master_wait_pos_backtraverse = 0

◆ rpl_semi_sync_master_wait_sessions

unsigned long rpl_semi_sync_master_wait_sessions = 0

◆ rpl_semi_sync_master_wait_timeouts

unsigned long rpl_semi_sync_master_wait_timeouts = 0

◆ rpl_semi_sync_master_yes_transactions

unsigned long rpl_semi_sync_master_yes_transactions = 0