Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  MDEV-38073.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[78] Masm[51] ABAP[44]} [Methode: maximale Elemente, drei Dimensionen]

#
# Ensure that the transaction_read_only option does not apply to Wsrep system
# threads (schema and appliers) and that the cluster keeps functioning.
#

--source include/galera_cluster.inc
--source include/have_innodb.inc
--source include/big_test.inc

# Save original auto_increment_offset values.
--let $node_1=node_1
--let $node_2=node_2
--source include/auto_increment_offset_save.inc

# Restart the node 2 in transaction_read_only mode.
--connection node_2
--source include/shutdown_mysqld.inc
--let $start_mysqld_params=--transaction_read_only=TRUE
--source include/start_mysqld.inc

--connection node_1
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;

# Note: this is not obligatory, but we want to test
# SR transactions as well.
SET SESSION wsrep_trx_fragment_size=1;

START TRANSACTION;
INSERT INTO t1 VALUES (1);
INSERT INTO t1 VALUES (2);
COMMIT;

--connection node_2
SELECT COUNT(*) = 2 FROM t1;

# Restart the node 2 in normal mode.
--connection node_2
--source include/shutdown_mysqld.inc
--let $start_mysqld_params=
--source include/start_mysqld.inc

# Cleanup
--connection node_1
DROP TABLE t1;

--source include/auto_increment_offset_restore.inc

[Dauer der Verarbeitung: 0.8 Sekunden]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126864
#Domains=1897691