summaryrefslogtreecommitdiff
path: root/include/myisamchk.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2021-09-15 21:21:03 +0300
committerMonty <monty@mariadb.org>2021-09-15 21:21:03 +0300
commit0d47945b58c0f12ca35f4803af9bfa8cc498f5cc (patch)
tree89133d8ae2804d3b47f789a260ee2bdc00cfa9be /include/myisamchk.h
parentb4f24c745a42d69fca2d67ce827c30632ef4b5fc (diff)
downloadmariadb-git-0d47945b58c0f12ca35f4803af9bfa8cc498f5cc.tar.gz
Fixed bug in aria_chk that overwrote sort_buffer_length
This bug happens when one runs aria_chk on multiple tables. It does not affect REPAIR TABLE. aria_chk tries to optimize the sort buffer size to minimize memory usage when used with small tables. The bug was that the adjusted value was used as a base for the next table, which could cause problems.
Diffstat (limited to 'include/myisamchk.h')
-rw-r--r--include/myisamchk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/myisamchk.h b/include/myisamchk.h
index f9a55ba467f..c494c672ec7 100644
--- a/include/myisamchk.h
+++ b/include/myisamchk.h
@@ -87,7 +87,7 @@ typedef struct st_handler_check_param
/* Following is used to check if rows are visible */
ulonglong max_trid, max_found_trid;
ulonglong not_visible_rows_found;
- ulonglong sort_buffer_length;
+ ulonglong sort_buffer_length, orig_sort_buffer_length;
ulonglong use_buffers; /* Used as param to getopt() */
size_t read_buffer_length, write_buffer_length, sort_key_blocks;
time_t backup_time; /* To sign backup files */