From 8373b4deac0d60f31a46162b6ef21bfd3ba007c9 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 10 Dec 2007 03:23:15 +0200 Subject: Fixed core dump when running myisamchk (as this doesn't call translog_init) Added option --transaction-log to maria_chk storage/maria/ma_init.c: Fixed core dump when running maria_chk (as this doesn't call translog_init) storage/maria/ma_test_all.sh: Added testing of --transaction-log storage/maria/maria_chk.c: Enable logging of repair commands if run with --transaction-log --- storage/maria/ma_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'storage/maria/ma_init.c') diff --git a/storage/maria/ma_init.c b/storage/maria/ma_init.c index 7785ac7b8df..bbf23934d15 100644 --- a/storage/maria/ma_init.c +++ b/storage/maria/ma_init.c @@ -59,7 +59,8 @@ void maria_end(void) ft_free_stopwords(); ma_checkpoint_end(); trnman_destroy(); - translog_destroy(); + if (translog_inited) + translog_destroy(); end_pagecache(maria_log_pagecache, TRUE); end_pagecache(maria_pagecache, TRUE); ma_control_file_end(); -- cgit v1.2.1