@@ -155,6 +155,50 @@ FLUSH RELAY LOGS;
155155--eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before + 1 AS wsrep_last_committed_diff;
156156--enable_query_log
157157
158+ --connection node_1
159+ SET @userstat_old= @@userstat;
160+ SET GLOBAL userstat=ON;
161+
162+ --connection node_2
163+ --let $wsrep_last_committed_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
164+ --connection node_1
165+ FLUSH CLIENT_STATISTICS;
166+ FLUSH INDEX_STATISTICS;
167+ FLUSH TABLE_STATISTICS;
168+ FLUSH USER_STATISTICS;
169+ --connection node_2
170+ --let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
171+ --disable_query_log
172+ --eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before + 4 AS wsrep_last_committed_diff;
173+ --enable_query_log
174+
175+
176+ --connection node_1
177+ SET @old_thread_statistics= @@global.thread_statistics;
178+ SET GLOBAL thread_statistics= ON;
179+
180+ --connection node_2
181+ --let $wsrep_last_committed_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
182+ --connection node_1
183+ FLUSH THREAD_STATISTICS;
184+ --connection node_2
185+ --let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
186+ --disable_query_log
187+ --eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before + 1 AS wsrep_last_committed_diff;
188+ --enable_query_log
189+
190+
191+ --connection node_2
192+ --let $wsrep_last_committed_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
193+ --connection node_1
194+ FLUSH CHANGED_PAGE_BITMAPS;
195+ --connection node_2
196+ --let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
197+ --disable_query_log
198+ --eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before + 1 AS wsrep_last_committed_diff;
199+ --enable_query_log
200+
201+
158202#
159203# The following statements should not be replicated: FLUSH LOGS, FLUSH TABLES WITH LOCKS
160204#
@@ -220,6 +264,10 @@ FLUSH TABLES t1;
220264--eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before + 1 AS wsrep_last_committed_diff;
221265--enable_query_log
222266
267+
268+
223269--connection node_1
224270DROP TABLE t1;
225271DROP TABLE t2;
272+ SET GLOBAL userstat= @userstat_old;
273+ SET GLOBAL thread_statistics= @old_thread_statistics;
0 commit comments