summaryrefslogtreecommitdiff
path: root/storage/maria
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2016-06-16 22:04:24 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2016-06-16 22:04:24 +0300
commit12ae840375fe30da1c23647facaa0678858d6d92 (patch)
tree17134a52667f89be8b8b0e5416c01ea77f8cb334 /storage/maria
parentc7eef029533d71d1c83c231dde065184589930f7 (diff)
downloadmariadb-git-12ae840375fe30da1c23647facaa0678858d6d92.tar.gz
Fix typo bug that cause myisam repair to failmariadb-5.5.50
We need to return TRUE if got_error == 1, not error, which is initialized to FALSE.
Diffstat (limited to 'storage/maria')
-rw-r--r--storage/maria/ma_sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ma_sort.c b/storage/maria/ma_sort.c
index a95f9bb7ddb..a49ce8fba1f 100644
--- a/storage/maria/ma_sort.c
+++ b/storage/maria/ma_sort.c
@@ -335,7 +335,7 @@ err:
static my_bool _ma_thr_find_all_keys_exec(MARIA_SORT_PARAM* sort_param)
{
- my_bool error= FALSE;
+ int error= 0;
ulonglong memavl, old_memavl;
uint UNINIT_VAR(keys), idx;
uint sort_length;