For the complete documentation index, see llms.txt. This page is also available as Markdown.

WSREP Service

Plugin API reference: WSREP Service. Generated from the MariaDB server headers by doxygen and moxygen.

Plugin API / Services for Plugins / Services for Direct Access to Server Internals

Access to WSREP functionality

Classes

Name
Description

Macros


WSREP_ASSERT_INNODB_TRX

Defined in service_wsrep.h:46

The bits in the bitmask for disabling temporarily some asserts


MYSQL_SERVICE_WSREP_DYNAMIC_INCLUDED

Defined in service_wsrep.h:116


get_wsrep_recovery

Defined in service_wsrep.h:117


wsrep_consistency_check

Defined in service_wsrep.h:118


wsrep_is_wsrep_xid

Defined in service_wsrep.h:119


wsrep_xid_seqno

Defined in service_wsrep.h:120


wsrep_xid_uuid

Defined in service_wsrep.h:121


wsrep_on

Defined in service_wsrep.h:126

Return true if wsrep is enabled for a thd. This means that wsrep is enabled globally and the thd has wsrep on


wsrep_prepare_key_for_innodb

Defined in service_wsrep.h:127


wsrep_thd_LOCK

Defined in service_wsrep.h:129

Lock thd wsrep lock


wsrep_thd_TRYLOCK

Defined in service_wsrep.h:134

Try thd wsrep lock.

Returns

non-zero if lock could not be taken.


wsrep_thd_UNLOCK

Defined in service_wsrep.h:136

Unlock thd wsrep lock


wsrep_thd_kill_LOCK

Defined in service_wsrep.h:137


wsrep_thd_kill_UNLOCK

Defined in service_wsrep.h:138


wsrep_thd_query

Defined in service_wsrep.h:139


wsrep_thd_retry_counter

Defined in service_wsrep.h:140


wsrep_thd_ignore_table

Defined in service_wsrep.h:141


wsrep_thd_trx_seqno

Defined in service_wsrep.h:142


wsrep_set_data_home_dir

Defined in service_wsrep.h:143


wsrep_thd_is_BF

Defined in service_wsrep.h:145

Return Values

Value
Description

true

if thd is in BF mode, either high_priority or TOI


wsrep_thd_is_aborting

Defined in service_wsrep.h:146


wsrep_thd_in_rollback_func

Defined in service_wsrep.h:148

Return Values

Value
Description

true

if thd is in rollback


wsrep_thd_is_local

Defined in service_wsrep.h:150

Return Values

Value
Description

true

if thd is in replicating mode


wsrep_thd_self_abort

Defined in service_wsrep.h:152

Mark thd own transaction as aborted


wsrep_thd_append_key

Defined in service_wsrep.h:153


wsrep_thd_append_table_key

Defined in service_wsrep.h:154


wsrep_thd_is_local_transaction

Defined in service_wsrep.h:155


wsrep_thd_client_state_str

Defined in service_wsrep.h:157

Returns

thd client state string


wsrep_thd_client_mode_str

Defined in service_wsrep.h:159

Returns

thd client mode string


wsrep_thd_transaction_state_str

Defined in service_wsrep.h:161

Returns

thd transaction state string


wsrep_thd_transaction_id

Defined in service_wsrep.h:163

Returns

current transaction id


wsrep_thd_bf_abort

Defined in service_wsrep.h:165

Mark victim_thd transaction as aborted


wsrep_thd_order_before

Defined in service_wsrep.h:166


wsrep_handle_SR_rollback

Defined in service_wsrep.h:167


wsrep_thd_skip_locking

Defined in service_wsrep.h:168


wsrep_get_sr_table_name

Defined in service_wsrep.h:169


wsrep_get_debug

Defined in service_wsrep.h:170


wsrep_commit_ordered

Defined in service_wsrep.h:171


wsrep_thd_is_applying

Defined in service_wsrep.h:176

Returns

true if thd is in high priority mode


wsrep_OSU_method_get

Defined in service_wsrep.h:177


wsrep_thd_has_ignored_error

Defined in service_wsrep.h:178


wsrep_thd_set_ignored_error

Defined in service_wsrep.h:179


wsrep_report_bf_lock_wait

Defined in service_wsrep.h:180


wsrep_thd_set_PA_unsafe

Defined in service_wsrep.h:181


wsrep_get_domain_id

Defined in service_wsrep.h:182

Enumerations

Name
Description

Wsrep_service_key_type

Defined in service_wsrep.h:36

Value
Description

WSREP_SERVICE_KEY_SHARED

WSREP_SERVICE_KEY_REFERENCE

WSREP_SERVICE_KEY_UPDATE

WSREP_SERVICE_KEY_EXCLUSIVE

Typedefs

Return
Name
Description

int64

Must match to definition in sql/mysqld.h


query_id_t

Defined in service_wsrep.h:60

Must match to definition in sql/mysqld.h

Functions

Return
Name
Description

void

Get the XID for this connection's transaction


thd_get_xid

Defined in plugin.h:946

Get the XID for this connection's transaction

Parameters

Parameter
Type
Description

thd

const MYSQL_THD

user thread connection handle

xid

location where identifier is stored

thd

const MYSQL_THD

user thread connection handle

xid

location where identifier is stored

Variables

Return
Name
Description

wsrep_service

Type: struct wsrep_service_st *

Defined in service_wsrep.h:110

Class Definitions

wsrep_service_st

Defined in service_wsrep.h:61

Public Attributes

Return
Name
Description

get_wsrep_recovery_func

Defined in service_wsrep.h:62


wsrep_consistency_check_func

Defined in service_wsrep.h:63


wsrep_is_wsrep_xid_func

Defined in service_wsrep.h:64


wsrep_xid_seqno_func

Defined in service_wsrep.h:65


wsrep_xid_uuid_func

Defined in service_wsrep.h:66


wsrep_on_func

Defined in service_wsrep.h:67


wsrep_prepare_key_for_innodb_func

Defined in service_wsrep.h:68


wsrep_thd_LOCK_func

Defined in service_wsrep.h:69


wsrep_thd_TRYLOCK_func

Defined in service_wsrep.h:70


wsrep_thd_UNLOCK_func

Defined in service_wsrep.h:71


wsrep_thd_query_func

Defined in service_wsrep.h:72


wsrep_thd_retry_counter_func

Defined in service_wsrep.h:73


wsrep_thd_ignore_table_func

Defined in service_wsrep.h:74


wsrep_thd_trx_seqno_func

Defined in service_wsrep.h:75


wsrep_thd_is_aborting_func

Defined in service_wsrep.h:76


wsrep_thd_in_rollback_func

Defined in service_wsrep.h:77


wsrep_set_data_home_dir_func

Defined in service_wsrep.h:78


wsrep_thd_is_BF_func

Defined in service_wsrep.h:79


wsrep_thd_is_local_func

Defined in service_wsrep.h:80


wsrep_thd_self_abort_func

Defined in service_wsrep.h:81


wsrep_thd_append_key_func

Defined in service_wsrep.h:82


wsrep_thd_append_table_key_func

Defined in service_wsrep.h:84


wsrep_thd_is_local_transaction

Defined in service_wsrep.h:86


wsrep_thd_client_state_str_func

Defined in service_wsrep.h:87


wsrep_thd_client_mode_str_func

Defined in service_wsrep.h:88


wsrep_thd_transaction_state_str_func

Defined in service_wsrep.h:89


wsrep_thd_transaction_id_func

Defined in service_wsrep.h:90


wsrep_thd_bf_abort_func

Defined in service_wsrep.h:91


wsrep_thd_order_before_func

Defined in service_wsrep.h:94


wsrep_handle_SR_rollback_func

Defined in service_wsrep.h:95


wsrep_thd_skip_locking_func

Defined in service_wsrep.h:96


wsrep_get_sr_table_name_func

Defined in service_wsrep.h:97


wsrep_get_debug_func

Defined in service_wsrep.h:98


wsrep_commit_ordered_func

Defined in service_wsrep.h:99


wsrep_thd_is_applying_func

Defined in service_wsrep.h:100


wsrep_OSU_method_get_func

Defined in service_wsrep.h:101


wsrep_thd_has_ignored_error_func

Defined in service_wsrep.h:102


wsrep_thd_set_ignored_error_func

Defined in service_wsrep.h:103


wsrep_report_bf_lock_wait_func

Defined in service_wsrep.h:104


wsrep_thd_kill_LOCK_func

Defined in service_wsrep.h:106


wsrep_thd_kill_UNLOCK_func

Defined in service_wsrep.h:107


wsrep_thd_set_wsrep_PA_unsafe_func

Defined in service_wsrep.h:108


wsrep_get_domain_id_func

Defined in service_wsrep.h:109

This page is licensed: GPLv2

spinner

Last updated

Was this helpful?