|
7 | 7 | --source include/have_perfschema.inc
|
8 | 8 | --source include/have_query_cache.inc
|
9 | 9 |
|
| 10 | +--disable_warnings |
| 11 | +DROP TABLE IF EXISTS t1, t2; |
| 12 | +--enable_warnings |
10 | 13 | #
|
11 | 14 | # The following FLUSH statements should be replicated
|
12 | 15 | #
|
@@ -101,6 +104,101 @@ FLUSH TABLES t2;
|
101 | 104 | --enable_query_log
|
102 | 105 |
|
103 | 106 |
|
| 107 | +--connection node_2 |
| 108 | +--let $wsrep_last_committed_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 109 | +--connection node_1 |
| 110 | +FLUSH ERROR LOGS; |
| 111 | +--connection node_2 |
| 112 | +--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 113 | +--disable_query_log |
| 114 | +--eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before + 1 AS wsrep_last_committed_diff; |
| 115 | +--enable_query_log |
| 116 | + |
| 117 | + |
| 118 | +--connection node_2 |
| 119 | +--let $wsrep_last_committed_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 120 | +--connection node_1 |
| 121 | +FLUSH SLOW LOGS; |
| 122 | +--connection node_2 |
| 123 | +--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 124 | +--disable_query_log |
| 125 | +--eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before + 1 AS wsrep_last_committed_diff; |
| 126 | +--enable_query_log |
| 127 | + |
| 128 | +--connection node_2 |
| 129 | +--let $wsrep_last_committed_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 130 | +--connection node_1 |
| 131 | +FLUSH GENERAL LOGS; |
| 132 | +--connection node_2 |
| 133 | +--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 134 | +--disable_query_log |
| 135 | +--eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before + 1 AS wsrep_last_committed_diff; |
| 136 | +--enable_query_log |
| 137 | + |
| 138 | +--connection node_2 |
| 139 | +--let $wsrep_last_committed_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 140 | +--connection node_1 |
| 141 | +FLUSH ENGINE LOGS; |
| 142 | +--connection node_2 |
| 143 | +--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 144 | +--disable_query_log |
| 145 | +--eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before + 1 AS wsrep_last_committed_diff; |
| 146 | +--enable_query_log |
| 147 | + |
| 148 | +--connection node_2 |
| 149 | +--let $wsrep_last_committed_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 150 | +--connection node_1 |
| 151 | +FLUSH RELAY LOGS; |
| 152 | +--connection node_2 |
| 153 | +--let $wsrep_last_committed_after = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 154 | +--disable_query_log |
| 155 | +--eval SELECT $wsrep_last_committed_after = $wsrep_last_committed_before + 1 AS wsrep_last_committed_diff; |
| 156 | +--enable_query_log |
| 157 | + |
| 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 | + |
104 | 202 | #
|
105 | 203 | # The following statements should not be replicated: FLUSH LOGS, FLUSH TABLES WITH LOCKS
|
106 | 204 | #
|
@@ -171,3 +269,5 @@ FLUSH TABLES t1;
|
171 | 269 | --connection node_1
|
172 | 270 | DROP TABLE t1;
|
173 | 271 | DROP TABLE t2;
|
| 272 | +SET GLOBAL userstat= @userstat_old; |
| 273 | +SET GLOBAL thread_statistics= @old_thread_statistics; |
0 commit comments