Commit a9fde68
Refactor data dictionary transaction isolation setting (facebook#1316)
Summary:
InnoDB uses READ UNCOMMITTED, which is not supported with MyRocks. Instead of
hardcoding READ UNCOMMITTED at several locations, introduce a helper function
that returns the desired DD transaction isolation level, based on the default DD
engine.
No functional changes if the default DD engine is InnoDB.
Pull Request resolved: facebook#1316
Differential Revision: D464706671 parent c417a54 commit a9fde68
File tree
5 files changed
+43
-47
lines changed- sql/dd
- cache
- impl
- cache
- tables
- types
5 files changed
+43
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
596 | | - | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
597 | 598 | | |
598 | 599 | | |
599 | 600 | | |
| |||
614 | 615 | | |
615 | 616 | | |
616 | 617 | | |
617 | | - | |
618 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
619 | 621 | | |
620 | 622 | | |
621 | 623 | | |
| |||
1046 | 1048 | | |
1047 | 1049 | | |
1048 | 1050 | | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1052 | 1055 | | |
1053 | 1056 | | |
1054 | 1057 | | |
| |||
1072 | 1075 | | |
1073 | 1076 | | |
1074 | 1077 | | |
1075 | | - | |
| 1078 | + | |
| 1079 | + | |
1076 | 1080 | | |
1077 | 1081 | | |
1078 | 1082 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
67 | 84 | | |
68 | 85 | | |
69 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
1223 | 1224 | | |
1224 | 1225 | | |
1225 | 1226 | | |
1226 | | - | |
1227 | | - | |
1228 | 1227 | | |
1229 | 1228 | | |
1230 | | - | |
| 1229 | + | |
1231 | 1230 | | |
1232 | 1231 | | |
1233 | 1232 | | |
| |||
1651 | 1650 | | |
1652 | 1651 | | |
1653 | 1652 | | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
| 1653 | + | |
1659 | 1654 | | |
1660 | 1655 | | |
1661 | 1656 | | |
| |||
1728 | 1723 | | |
1729 | 1724 | | |
1730 | 1725 | | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
| 1726 | + | |
1736 | 1727 | | |
1737 | 1728 | | |
1738 | 1729 | | |
| |||
1761 | 1752 | | |
1762 | 1753 | | |
1763 | 1754 | | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
1768 | 1755 | | |
1769 | | - | |
| 1756 | + | |
1770 | 1757 | | |
1771 | 1758 | | |
1772 | 1759 | | |
| |||
2289 | 2276 | | |
2290 | 2277 | | |
2291 | 2278 | | |
2292 | | - | |
2293 | | - | |
2294 | | - | |
2295 | | - | |
2296 | | - | |
2297 | | - | |
| 2279 | + | |
2298 | 2280 | | |
2299 | 2281 | | |
2300 | 2282 | | |
| |||
2338 | 2320 | | |
2339 | 2321 | | |
2340 | 2322 | | |
2341 | | - | |
| 2323 | + | |
2342 | 2324 | | |
2343 | 2325 | | |
2344 | 2326 | | |
| |||
2817 | 2799 | | |
2818 | 2800 | | |
2819 | 2801 | | |
2820 | | - | |
| 2802 | + | |
2821 | 2803 | | |
2822 | 2804 | | |
2823 | 2805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 121 | + | |
126 | 122 | | |
127 | 123 | | |
128 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 230 | + | |
234 | 231 | | |
235 | 232 | | |
236 | 233 | | |
| |||
0 commit comments