wsrep_sync_wait
    - Description: Setting this variable ensures causality checks will take place before executing an
        operation of the type specified by the value, ensuring that the statement is executed on a fully synced node.
        While the check is taking place, new queries are blocked on the node to allow the server to catch up with all
        updates made in the cluster up to the point where the check was begun. Once reached, the original query is
        executed on the node. This can result in higher latency. Note that when wsrep_dirty_reads is ON, values of wsrep_sync_wait become irrelevant. Sample
        usage (for a critical read that must have the most up-to-date data)
        SET SESSION wsrep_sync_wait=1; SELECT ...; SET SESSION wsrep_sync_wait=0;
            - 0- Disabled (default)
- 1- READ (SELECT and BEGIN/START TRANSACTION). Up until MariaDB 10.2.8, MariaDB 10.1.26, MariaDB Galera 10.0.31 and MariaDB Galera 5.5.56, also SHOW). This
                is the same as wsrep_causal_reads=1.
- 2- UPDATE and DELETE;
- 3- READ, UPDATE and DELETE;
- 4- INSERT and REPLACE;
- 5- READ, INSERT and REPLACE;
- 6- UPDATE, DELETE, INSERT and REPLACE;
- 7- READ, UPDATE, DELETE, INSERT and REPLACE;
- 8- SHOW (from MariaDB 10.2.9, MariaDB 10.1.27, MariaDB Galera 10.0.32, MariaDB Galera 5.5.57)
- 9- READ and SHOW (from MariaDB 10.2.9, MariaDB 10.1.27, MariaDB Galera 10.0.32, MariaDB Galera 5.5.57)
- 10- UPDATE, DELETE and SHOW (from MariaDB
                    10.2.9, MariaDB 10.1.27, MariaDB Galera 10.0.32, MariaDB Galera 5.5.57)
- 11- READ, UPDATE, DELETE and SHOW (from MariaDB 10.2.9, MariaDB 10.1.27, MariaDB Galera 10.0.32, MariaDB Galera 5.5.57)
- 12- INSERT, REPLACE and SHOW (from MariaDB
                    10.2.9, MariaDB 10.1.27, MariaDB Galera 10.0.32, MariaDB Galera 5.5.57)
- 13- READ, INSERT, REPLACE and SHOW (from MariaDB 10.2.9, MariaDB 10.1.27, MariaDB Galera 10.0.32, MariaDB Galera 5.5.57)
- 14- UPDATE, DELETE, INSERT, REPLACE and SHOW (from MariaDB 10.2.9, MariaDB 10.1.27, MariaDB Galera 10.0.32, MariaDB Galera 5.5.57)
- 15- READ, UPDATE, DELETE, INSERT, REPLACE and SHOW (from MariaDB 10.2.9, MariaDB 10.1.27, MariaDB Galera 10.0.32, MariaDB Galera 5.5.57)
 
- Commandline: --wsrep-sync-wait=#
- Scope: Global, Session
    
- Dynamic: Yes
    
- Data Type: Numeric
    
- Default Value: 0
- Range:
        
    
- Introduced: MariaDB Galera
            10.0.13, MariaDB Galera 5.5.39