Commit 2a060e0
Adding ability to apply binlogs thru mysqlbinlog in multi-threaded mode
Summary:
Added a new flag in `mysqlbinlog` `--mta-workers=x` that tells
the server to spawn `x` dependency applier workers to apply
transactions. When `--mta-workers` is specified all events are printed
in their base64 representation so we can create log events out of them.
Differential Revision: D49466823
---------------------------------------------------------------------------
Cast enum into target type in a ternary operator (facebook#1411)
Summary:
This fixes a GCC build error:
sql/rpl_replica.cc: In function ‘int slave_start_single_worker(Relay_log_info*, ulong)’: sql/rpl_replica.cc:7207:28: error: enumerated and non-enumerated type in conditional expression [-Werror=extra]
7207 | rli->is_fake() ? INFO_REPOSITORY_DUMMY : opt_rli_repository_id, i,
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pull Request resolved: facebook#1411
Differential Revision: D52207263
fbshipit-source-id: 47d7f5c1 parent 071cda5 commit 2a060e0
File tree
21 files changed
+398
-52
lines changed- client
- mysql-test
- r
- suite
- binlog_nogtid/r
- rpl
- r
- t
- sys_vars
- r
- t
- sql
21 files changed
+398
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
| 746 | + | |
746 | 747 | | |
747 | 748 | | |
748 | 749 | | |
| |||
1279 | 1280 | | |
1280 | 1281 | | |
1281 | 1282 | | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
1282 | 1303 | | |
1283 | 1304 | | |
1284 | 1305 | | |
| |||
1288 | 1309 | | |
1289 | 1310 | | |
1290 | 1311 | | |
1291 | | - | |
| 1312 | + | |
1292 | 1313 | | |
1293 | 1314 | | |
1294 | 1315 | | |
| |||
1520 | 1541 | | |
1521 | 1542 | | |
1522 | 1543 | | |
1523 | | - | |
| 1544 | + | |
1524 | 1545 | | |
1525 | 1546 | | |
1526 | 1547 | | |
| |||
1637 | 1658 | | |
1638 | 1659 | | |
1639 | 1660 | | |
1640 | | - | |
| 1661 | + | |
1641 | 1662 | | |
1642 | 1663 | | |
1643 | 1664 | | |
| |||
1660 | 1681 | | |
1661 | 1682 | | |
1662 | 1683 | | |
1663 | | - | |
| 1684 | + | |
1664 | 1685 | | |
1665 | 1686 | | |
1666 | 1687 | | |
| |||
1761 | 1782 | | |
1762 | 1783 | | |
1763 | 1784 | | |
1764 | | - | |
| 1785 | + | |
1765 | 1786 | | |
1766 | 1787 | | |
1767 | 1788 | | |
| |||
1795 | 1816 | | |
1796 | 1817 | | |
1797 | 1818 | | |
1798 | | - | |
| 1819 | + | |
1799 | 1820 | | |
1800 | 1821 | | |
1801 | 1822 | | |
| |||
1833 | 1854 | | |
1834 | 1855 | | |
1835 | 1856 | | |
1836 | | - | |
| 1857 | + | |
1837 | 1858 | | |
1838 | 1859 | | |
1839 | 1860 | | |
| |||
1848 | 1869 | | |
1849 | 1870 | | |
1850 | 1871 | | |
1851 | | - | |
| 1872 | + | |
1852 | 1873 | | |
1853 | 1874 | | |
1854 | 1875 | | |
| |||
1864 | 1885 | | |
1865 | 1886 | | |
1866 | 1887 | | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
1867 | 1892 | | |
1868 | 1893 | | |
1869 | 1894 | | |
| |||
2038 | 2063 | | |
2039 | 2064 | | |
2040 | 2065 | | |
2041 | | - | |
| 2066 | + | |
2042 | 2067 | | |
2043 | 2068 | | |
2044 | 2069 | | |
| |||
2069 | 2094 | | |
2070 | 2095 | | |
2071 | 2096 | | |
2072 | | - | |
| 2097 | + | |
2073 | 2098 | | |
2074 | 2099 | | |
2075 | 2100 | | |
| |||
2091 | 2116 | | |
2092 | 2117 | | |
2093 | 2118 | | |
2094 | | - | |
| 2119 | + | |
2095 | 2120 | | |
2096 | 2121 | | |
2097 | 2122 | | |
2098 | 2123 | | |
2099 | | - | |
| 2124 | + | |
2100 | 2125 | | |
2101 | 2126 | | |
2102 | 2127 | | |
| |||
2118 | 2143 | | |
2119 | 2144 | | |
2120 | 2145 | | |
2121 | | - | |
| 2146 | + | |
2122 | 2147 | | |
2123 | 2148 | | |
2124 | 2149 | | |
| |||
2246 | 2271 | | |
2247 | 2272 | | |
2248 | 2273 | | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
2249 | 2279 | | |
2250 | 2280 | | |
2251 | 2281 | | |
| |||
3808 | 3838 | | |
3809 | 3839 | | |
3810 | 3840 | | |
| 3841 | + | |
| 3842 | + | |
| 3843 | + | |
| 3844 | + | |
| 3845 | + | |
3811 | 3846 | | |
3812 | 3847 | | |
3813 | 3848 | | |
| |||
4182 | 4217 | | |
4183 | 4218 | | |
4184 | 4219 | | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
4185 | 4231 | | |
4186 | 4232 | | |
4187 | 4233 | | |
| |||
4210 | 4256 | | |
4211 | 4257 | | |
4212 | 4258 | | |
4213 | | - | |
| 4259 | + | |
| 4260 | + | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
| 4264 | + | |
4214 | 4265 | | |
4215 | 4266 | | |
4216 | 4267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1093 | 1096 | | |
1094 | 1097 | | |
1095 | 1098 | | |
| |||
3442 | 3445 | | |
3443 | 3446 | | |
3444 | 3447 | | |
| 3448 | + | |
3445 | 3449 | | |
3446 | 3450 | | |
3447 | 3451 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
403 | 404 | | |
404 | 405 | | |
405 | 406 | | |
| 407 | + | |
406 | 408 | | |
407 | 409 | | |
408 | 410 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
405 | 406 | | |
406 | 407 | | |
407 | 408 | | |
| 409 | + | |
408 | 410 | | |
409 | 411 | | |
410 | 412 | | |
| |||
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2563 | 2563 | | |
2564 | 2564 | | |
2565 | 2565 | | |
2566 | | - | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
2567 | 2570 | | |
2568 | 2571 | | |
2569 | 2572 | | |
| |||
0 commit comments