[Current thread is 1 (Thread 0x1465f3bfd640 (LWP 3787284))]
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=22428113688128) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=22428113688128) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=22428113688128, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x000014662cb67476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x000014662cb4d7f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x000014662cb4d71b in __assert_fail_base (fmt=0x14662cd02150 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55bd05740338 "m_tickets[MDL_STATEMENT].is_empty()", file=0x55bd0573fd19 "/test/11.1_dbg/sql/mdl.cc", line=3261, function=<optimized out>) at ./assert/assert.c:92
#6 0x000014662cb5ee96 in __GI___assert_fail (assertion=0x55bd05740338 "m_tickets[MDL_STATEMENT].is_empty()", file=0x55bd0573fd19 "/test/11.1_dbg/sql/mdl.cc", line=3261, function=0x55bd05740db8 "void MDL_context::set_transaction_duration_for_all_locks()") at ./assert/assert.c:101
#7 0x000055bd04d6e704 in MDL_context::set_transaction_duration_for_all_locks (this=this@entry=0x1465c0000eb0) at /test/11.1_dbg/sql/mdl.cc:3261
#8 0x000055bd04ba3f60 in THD::leave_locked_tables_mode (this=this@entry=0x1465c0000d58) at /test/11.1_dbg/sql/sql_class.cc:6020
#9 0x000055bd04b84130 in Locked_tables_list::unlock_locked_tables (this=this@entry=0x1465c0004db8, thd=thd@entry=0x1465c0000d58) at /test/11.1_dbg/sql/sql_base.cc:2595
#10 0x000055bd04b842a9 in Locked_tables_list::unlock_locked_table (this=0x1465c0004db8, thd=0x1465c0000d58, mdl_ticket=<optimized out>) at /test/11.1_dbg/sql/sql_base.cc:2643
#11 0x000055bd04bc08f0 in select_create::abort_result_set (this=0x1465c0014a00) at /test/11.1_dbg/sql/sql_insert.cc:5329
#12 0x000055bd04c93044 in handle_select (thd=thd@entry=0x1465c0000d58, lex=lex@entry=0x1465c0004ec8, result=result@entry=0x1465c0014a00, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/11.1_dbg/sql/sql_select.cc:629
#13 0x000055bd04ce2974 in Sql_cmd_create_table_like::execute (this=<optimized out>, thd=0x1465c0000d58) at /test/11.1_dbg/sql/sql_table.cc:12422
#14 0x000055bd04c09604 in mysql_execute_command (thd=thd@entry=0x1465c0000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.1_dbg/sql/sql_parse.cc:5760
#15 0x000055bd04c0af05 in mysql_parse (thd=thd@entry=0x1465c0000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1465f3bfc230) at /test/11.1_dbg/sql/sql_parse.cc:7760
#16 0x000055bd04c0d099 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1465c0000d58, packet=packet@entry=0x1465c000ae49 "CREATE OR REPLACE TABLE t (a INT) ENGINE=Aria COMMENT=''SELECT'' AS a", packet_length=packet_length@entry=69, blocking=blocking@entry=true) at /test/11.1_dbg/sql/sql_class.h:242
#17 0x000055bd04c0eef5 in do_command (thd=0x1465c0000d58, blocking=blocking@entry=true) at /test/11.1_dbg/sql/sql_parse.cc:1405
#18 0x000055bd04d60cfc in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55bd08081e98, put_in_cache=put_in_cache@entry=true) at /test/11.1_dbg/sql/sql_connect.cc:1416
#19 0x000055bd04d60f5b in handle_one_connection (arg=0x55bd08081e98) at /test/11.1_dbg/sql/sql_connect.cc:1318
#20 0x000014662cbb9b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#21 0x000014662cc4ba00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Regression was introduced recently. Git bisect in progress complete: dd5f4b3625def2ee74d8f9a6b55d1368ba597a84 is the first bad commit
commit dd5f4b3625def2ee74d8f9a6b55d1368ba597a84
Author: Monty <monty@mariadb.org>
Date: Thu Dec 8 12:10:58 2022 +0200
Fixed bug in Aria when used with enterprise mariadb-backup
If the backup finished in the middle of a Aria bulk load insert,
which could happen with LOAD DATA INFILE, CREATE ... SELECT etc)
there was a chance that Aria recovery would fail on the backup.
Fixed by ensuring that bulk load operations for Aria are not allowed
under BACKUP LOCK.
I also changed so that the table TRN is updated just before truncate
which ensures that old redo's for the table are ignored.
I also enabled Aria redo for DDL's to be able to repeat REPAIR commands.
Without this change recovery would not work on repaired tables.
Notes:
- We take the backup lock protection at the end of bulk insert (as we
don't want to keep the lock over a very long running insert).
If mariadb-backup keeps the backup lock too long, this may fail with
a lock timeout. In this case the batch insert will fail and the table
will be truncated (set to it's original state).
Roel Van de Paar
added a comment - - edited Regression was introduced recently. Git bisect in progress complete: dd5f4b3625def2ee74d8f9a6b55d1368ba597a84 is the first bad commit
commit dd5f4b3625def2ee74d8f9a6b55d1368ba597a84
Author: Monty <monty@mariadb.org>
Date: Thu Dec 8 12:10:58 2022 +0200
Fixed bug in Aria when used with enterprise mariadb-backup
If the backup finished in the middle of a Aria bulk load insert,
which could happen with LOAD DATA INFILE, CREATE ... SELECT etc)
there was a chance that Aria recovery would fail on the backup.
Fixed by ensuring that bulk load operations for Aria are not allowed
under BACKUP LOCK.
I also changed so that the table TRN is updated just before truncate
which ensures that old redo's for the table are ignored.
I also enabled Aria redo for DDL's to be able to repeat REPAIR commands.
Without this change recovery would not work on repaired tables.
Notes:
- We take the backup lock protection at the end of bulk insert (as we
don't want to keep the lock over a very long running insert).
If mariadb-backup keeps the backup lock too long, this may fail with
a lock timeout. In this case the batch insert will fail and the table
will be truncated (set to it's original state).
CREATEORREPLACETABLE t (a INT) ENGINE=Aria COMMENT=''SELECT''AS a;
Roel Van de Paar
added a comment - MTR Testcase
--source include/have_innodb.inc
CREATE TABLE t (c ENUM ( '' '' )) ENGINE=InnoDB;
LOCK TABLE t WRITE;
SET sql_mode=strict_all_tables;
CREATE OR REPLACE TABLE t (a INT ) ENGINE=Aria COMMENT= '' SELECT '' AS a;
People
Michael Widenius
Roel Van de Paar
Votes:
0Vote for this issue
Watchers:
1Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1029.800000011921,"ttfb":304.9000000357628,"pageVisibility":"visible","entityId":120953,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"44e28f5a-acf1-44c2-94cb-46a15c262ec3","navigationType":0,"readyForUser":1106.5,"redirectCount":0,"resourceLoadedEnd":1377.9000000357628,"resourceLoadedStart":310.2000000476837,"resourceTiming":[{"duration":247.69999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":310.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":310.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":557.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":247.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":310.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":310.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":558.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":255.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":310.7000000476837,"connectEnd":310.7000000476837,"connectStart":310.7000000476837,"domainLookupEnd":310.7000000476837,"domainLookupStart":310.7000000476837,"fetchStart":310.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":310.7000000476837,"responseEnd":566.5,"responseStart":566.5,"secureConnectionStart":310.7000000476837},{"duration":319.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":310.9000000357628,"connectEnd":310.9000000357628,"connectStart":310.9000000357628,"domainLookupEnd":310.9000000357628,"domainLookupStart":310.9000000357628,"fetchStart":310.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":310.9000000357628,"responseEnd":630.4000000357628,"responseStart":630.4000000357628,"secureConnectionStart":310.9000000357628},{"duration":323,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":311.10000002384186,"connectEnd":311.10000002384186,"connectStart":311.10000002384186,"domainLookupEnd":311.10000002384186,"domainLookupStart":311.10000002384186,"fetchStart":311.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":311.10000002384186,"responseEnd":634.1000000238419,"responseStart":634.1000000238419,"secureConnectionStart":311.10000002384186},{"duration":323.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":311.2000000476837,"connectEnd":311.2000000476837,"connectStart":311.2000000476837,"domainLookupEnd":311.2000000476837,"domainLookupStart":311.2000000476837,"fetchStart":311.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":311.2000000476837,"responseEnd":634.6000000238419,"responseStart":634.6000000238419,"secureConnectionStart":311.2000000476837},{"duration":323.4000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":311.5,"connectEnd":311.5,"connectStart":311.5,"domainLookupEnd":311.5,"domainLookupStart":311.5,"fetchStart":311.5,"redirectEnd":0,"redirectStart":0,"requestStart":311.5,"responseEnd":634.9000000357628,"responseStart":634.9000000357628,"secureConnectionStart":311.5},{"duration":394.69999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":311.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":311.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":706.3000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":323.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":311.80000001192093,"connectEnd":311.80000001192093,"connectStart":311.80000001192093,"domainLookupEnd":311.80000001192093,"domainLookupStart":311.80000001192093,"fetchStart":311.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":311.80000001192093,"responseEnd":635.4000000357628,"responseStart":635.3000000119209,"secureConnectionStart":311.80000001192093},{"duration":394.4000000357628,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":312,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":312,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":706.4000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":323.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":312.10000002384186,"connectEnd":312.10000002384186,"connectStart":312.10000002384186,"domainLookupEnd":312.10000002384186,"domainLookupStart":312.10000002384186,"fetchStart":312.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":312.10000002384186,"responseEnd":635.8000000119209,"responseStart":635.8000000119209,"secureConnectionStart":312.10000002384186},{"duration":582.5999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":317.4000000357628,"connectEnd":317.4000000357628,"connectStart":317.4000000357628,"domainLookupEnd":317.4000000357628,"domainLookupStart":317.4000000357628,"fetchStart":317.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":317.4000000357628,"responseEnd":900,"responseStart":900,"secureConnectionStart":317.4000000357628},{"duration":1059.4000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":317.5,"connectEnd":317.5,"connectStart":317.5,"domainLookupEnd":317.5,"domainLookupStart":317.5,"fetchStart":317.5,"redirectEnd":0,"redirectStart":0,"requestStart":317.5,"responseEnd":1376.9000000357628,"responseStart":1376.9000000357628,"secureConnectionStart":317.5},{"duration":191.0999999642372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":717.2000000476837,"connectEnd":717.2000000476837,"connectStart":717.2000000476837,"domainLookupEnd":717.2000000476837,"domainLookupStart":717.2000000476837,"fetchStart":717.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":717.2000000476837,"responseEnd":908.3000000119209,"responseStart":908.3000000119209,"secureConnectionStart":717.2000000476837},{"duration":407.30000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":970.4000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":970.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1377.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":407,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bv2/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":970.9000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":970.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1377.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":467,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":971.7000000476837,"connectEnd":971.7000000476837,"connectStart":971.7000000476837,"domainLookupEnd":971.7000000476837,"domainLookupStart":971.7000000476837,"fetchStart":971.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":971.7000000476837,"responseEnd":1438.7000000476837,"responseStart":1438.7000000476837,"secureConnectionStart":971.7000000476837},{"duration":470.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/53a43b6764f587426c7bb9a150184c00-CDN/lu2bv2/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":972.2000000476837,"connectEnd":972.2000000476837,"connectStart":972.2000000476837,"domainLookupEnd":972.2000000476837,"domainLookupStart":972.2000000476837,"fetchStart":972.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":972.2000000476837,"responseEnd":1443.1000000238419,"responseStart":1443.1000000238419,"secureConnectionStart":972.2000000476837},{"duration":472.0999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/630dda803a823fdd5771c4338338e018-CDN/lu2bv2/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":972.4000000357628,"connectEnd":972.4000000357628,"connectStart":972.4000000357628,"domainLookupEnd":972.4000000357628,"domainLookupStart":972.4000000357628,"fetchStart":972.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":972.4000000357628,"responseEnd":1444.5,"responseStart":1444.5,"secureConnectionStart":972.4000000357628}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":149,"responseStart":305,"responseEnd":312,"domLoading":308,"domInteractive":1400,"domContentLoadedEventStart":1400,"domContentLoadedEventEnd":1441,"domComplete":1776,"loadEventStart":1776,"loadEventEnd":1777,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1379.300000011921},{"name":"bigPipe.sidebar-id.end","time":1380.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1380.300000011921},{"name":"bigPipe.activity-panel-pipe-id.end","time":1382.1000000238419},{"name":"activityTabFullyLoaded","time":1455.1000000238419}],"measures":[],"correlationId":"b331f079f91bd8","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Regression was introduced recently. Git bisect
in progresscomplete: dd5f4b3625def2ee74d8f9a6b55d1368ba597a84 is the first bad commitcommit dd5f4b3625def2ee74d8f9a6b55d1368ba597a84
Author: Monty <monty@mariadb.org>
Date: Thu Dec 8 12:10:58 2022 +0200
Fixed bug in Aria when used with enterprise mariadb-backup
If the backup finished in the middle of a Aria bulk load insert,
which could happen with LOAD DATA INFILE, CREATE ... SELECT etc)
there was a chance that Aria recovery would fail on the backup.
Fixed by ensuring that bulk load operations for Aria are not allowed
under BACKUP LOCK.
I also changed so that the table TRN is updated just before truncate
which ensures that old redo's for the table are ignored.
I also enabled Aria redo for DDL's to be able to repeat REPAIR commands.
Without this change recovery would not work on repaired tables.
Notes:
- We take the backup lock protection at the end of bulk insert (as we
don't want to keep the lock over a very long running insert).
If mariadb-backup keeps the backup lock too long, this may fail with
a lock timeout. In this case the batch insert will fail and the table
will be truncated (set to it's original state).