MySQL 8.0.39
Source Code Documentation
semisync_source.cc File Reference
#include "plugin/semisync/semisync_source.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_source_enabled
 
unsigned long rpl_semi_sync_source_timeout
 
unsigned long rpl_semi_sync_source_trace_level
 
char rpl_semi_sync_source_status = 0
 
unsigned long rpl_semi_sync_source_yes_transactions = 0
 
unsigned long rpl_semi_sync_source_no_transactions = 0
 
unsigned long rpl_semi_sync_source_off_times = 0
 
unsigned long rpl_semi_sync_source_timefunc_fails = 0
 
unsigned long rpl_semi_sync_source_wait_timeouts = 0
 
unsigned long rpl_semi_sync_source_wait_sessions = 0
 
unsigned long rpl_semi_sync_source_wait_pos_backtraverse = 0
 
unsigned long rpl_semi_sync_source_avg_trx_wait_time = 0
 
unsigned long long rpl_semi_sync_source_trx_wait_num = 0
 
unsigned long rpl_semi_sync_source_avg_net_wait_time = 0
 
unsigned long long rpl_semi_sync_source_net_wait_num = 0
 
unsigned long rpl_semi_sync_source_clients = 0
 
unsigned long long rpl_semi_sync_source_net_wait_time = 0
 
unsigned long long rpl_semi_sync_source_trx_wait_time = 0
 
bool rpl_semi_sync_source_wait_no_replica = true
 
unsigned int rpl_semi_sync_source_wait_for_replica_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_source_avg_net_wait_time

unsigned long rpl_semi_sync_source_avg_net_wait_time = 0

◆ rpl_semi_sync_source_avg_trx_wait_time

unsigned long rpl_semi_sync_source_avg_trx_wait_time = 0

◆ rpl_semi_sync_source_clients

unsigned long rpl_semi_sync_source_clients = 0

◆ rpl_semi_sync_source_enabled

bool rpl_semi_sync_source_enabled

◆ rpl_semi_sync_source_net_wait_num

unsigned long long rpl_semi_sync_source_net_wait_num = 0

◆ rpl_semi_sync_source_net_wait_time

unsigned long long rpl_semi_sync_source_net_wait_time = 0

◆ rpl_semi_sync_source_no_transactions

unsigned long rpl_semi_sync_source_no_transactions = 0

◆ rpl_semi_sync_source_off_times

unsigned long rpl_semi_sync_source_off_times = 0

◆ rpl_semi_sync_source_status

char rpl_semi_sync_source_status = 0

◆ rpl_semi_sync_source_timefunc_fails

unsigned long rpl_semi_sync_source_timefunc_fails = 0

◆ rpl_semi_sync_source_timeout

unsigned long rpl_semi_sync_source_timeout

◆ rpl_semi_sync_source_trace_level

unsigned long rpl_semi_sync_source_trace_level

◆ rpl_semi_sync_source_trx_wait_num

unsigned long long rpl_semi_sync_source_trx_wait_num = 0

◆ rpl_semi_sync_source_trx_wait_time

unsigned long long rpl_semi_sync_source_trx_wait_time = 0

◆ rpl_semi_sync_source_wait_for_replica_count

unsigned int rpl_semi_sync_source_wait_for_replica_count = 1

◆ rpl_semi_sync_source_wait_no_replica

bool rpl_semi_sync_source_wait_no_replica = true

◆ rpl_semi_sync_source_wait_pos_backtraverse

unsigned long rpl_semi_sync_source_wait_pos_backtraverse = 0

◆ rpl_semi_sync_source_wait_sessions

unsigned long rpl_semi_sync_source_wait_sessions = 0

◆ rpl_semi_sync_source_wait_timeouts

unsigned long rpl_semi_sync_source_wait_timeouts = 0

◆ rpl_semi_sync_source_yes_transactions

unsigned long rpl_semi_sync_source_yes_transactions = 0