diff options
author | Monty <monty@mariadb.org> | 2021-09-15 21:21:03 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2021-09-15 21:21:03 +0300 |
commit | 0d47945b58c0f12ca35f4803af9bfa8cc498f5cc (patch) | |
tree | 89133d8ae2804d3b47f789a260ee2bdc00cfa9be /include/myisamchk.h | |
parent | b4f24c745a42d69fca2d67ce827c30632ef4b5fc (diff) | |
download | mariadb-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.h | 2 |
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 */ |