Commit c25b496
committed
MDEV-31382 SET GLOBAL innodb_undo_log_truncate=ON has no effect on logically empty undo logs
innodb_undo_log_truncate_update(): A callback function. If SET GLOBAL innodb_undo_log_truncate=ON, invoke srv_wake_purge_thread_if_not_active(). srv_wake_purge_thread_if_not_active(): If innodb_undo_log_truncate=ON, always wake up the purge subsystem. srv_do_purge(): If the history is empty, invoke trx_purge_truncate_history() in order to free undo log pages. trx_purge_truncate_history(): If head.trx_no==0, consider the cached undo logs to be free. trx_purge(): Remove the parameter "bool truncate" and let the caller invoke trx_purge_truncate_history() directly. Reviewed by: Vladislav Lesin1 parent 3e40f9a commit c25b496
File tree
4 files changed
+43
-32
lines changed- storage/innobase
- handler
- include
- srv
- trx
4 files changed
+43
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19684 | 19684 | | |
19685 | 19685 | | |
19686 | 19686 | | |
| 19687 | + | |
| 19688 | + | |
| 19689 | + | |
| 19690 | + | |
| 19691 | + | |
| 19692 | + | |
| 19693 | + | |
19687 | 19694 | | |
19688 | 19695 | | |
19689 | 19696 | | |
19690 | | - | |
| 19697 | + | |
19691 | 19698 | | |
19692 | 19699 | | |
19693 | 19700 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
49 | | - | |
50 | 57 | | |
51 | | - | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | | - | |
1350 | | - | |
| 1349 | + | |
1351 | 1350 | | |
1352 | | - | |
| 1351 | + | |
1353 | 1352 | | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1360 | 1357 | | |
1361 | 1358 | | |
1362 | 1359 | | |
| |||
1811 | 1808 | | |
1812 | 1809 | | |
1813 | 1810 | | |
1814 | | - | |
1815 | | - | |
| 1811 | + | |
| 1812 | + | |
1816 | 1813 | | |
1817 | 1814 | | |
1818 | 1815 | | |
| |||
1838 | 1835 | | |
1839 | 1836 | | |
1840 | 1837 | | |
1841 | | - | |
| 1838 | + | |
| 1839 | + | |
1842 | 1840 | | |
1843 | 1841 | | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
1850 | 1851 | | |
1851 | 1852 | | |
1852 | 1853 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
526 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
527 | 528 | | |
528 | | - | |
| 529 | + | |
529 | 530 | | |
530 | 531 | | |
531 | 532 | | |
| |||
618 | 619 | | |
619 | 620 | | |
620 | 621 | | |
621 | | - | |
| 622 | + | |
622 | 623 | | |
623 | 624 | | |
624 | 625 | | |
| |||
731 | 732 | | |
732 | 733 | | |
733 | 734 | | |
734 | | - | |
| 735 | + | |
735 | 736 | | |
736 | 737 | | |
737 | 738 | | |
| |||
1235 | 1236 | | |
1236 | 1237 | | |
1237 | 1238 | | |
1238 | | - | |
1239 | 1239 | | |
1240 | | - | |
| 1240 | + | |
1241 | 1241 | | |
1242 | 1242 | | |
1243 | 1243 | | |
| |||
1271 | 1271 | | |
1272 | 1272 | | |
1273 | 1273 | | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | 1274 | | |
1279 | 1275 | | |
1280 | 1276 | | |
| |||
0 commit comments