Adjust mariadb-sortbuffer.patch to correspond with upstream patch

This commit is contained in:
Honza Horák 2013-03-13 09:19:58 +01:00
parent 91bd546649
commit 061f172c2d
2 changed files with 16 additions and 19 deletions

View File

@ -1,19 +1,15 @@
diff -up mariadb-5.5.29/storage/myisam/myisamchk.c.sortbuffer mariadb-5.5.29/storage/myisam/myisamchk.c diff -up mariadb-5.5.29/include/myisamchk.h.buffer mariadb-5.5.29/include/myisamchk.h
--- mariadb-5.5.29/storage/myisam/myisamchk.c.sortbuffer 2013-02-27 16:46:02.258855014 +0100 --- mariadb-5.5.29/include/myisamchk.h.buffer 2013-03-13 09:17:02.802160975 +0100
+++ mariadb-5.5.29/storage/myisam/myisamchk.c 2013-02-27 16:46:23.456854430 +0100 +++ mariadb-5.5.29/include/myisamchk.h 2013-03-13 09:17:37.383161267 +0100
@@ -294,13 +294,13 @@ static struct my_option my_long_options[ @@ -138,9 +138,9 @@ typedef struct st_handler_check_param
{ "sort_buffer_size", OPT_SORT_BUFFER_SIZE, /* Following is used to check if rows are visible */
"Deprecated. myisam_sort_buffer_size alias is being used", ulonglong max_trid, max_found_trid;
&check_param.sort_buffer_length, ulonglong not_visible_rows_found;
- &check_param.sort_buffer_length, 0, GET_ULL, REQUIRED_ARG, + ulonglong sort_buffer_length;
+ &check_param.sort_buffer_length, 0, GET_ULONG, REQUIRED_ARG, ulonglong use_buffers; /* Used as param to getopt() */
(long) SORT_BUFFER_INIT, (long) (MIN_SORT_BUFFER + MALLOC_OVERHEAD), - size_t read_buffer_length, write_buffer_length;
SIZE_T_MAX, (long) MALLOC_OVERHEAD, (long) 1L, 0}, - size_t sort_buffer_length, sort_key_blocks;
{ "myisam_sort_buffer_size", OPT_SORT_BUFFER_SIZE, + size_t read_buffer_length, write_buffer_length, sort_key_blocks;
"Alias of sort_buffer_size parameter", time_t backup_time; /* To sign backup files */
&check_param.sort_buffer_length, ulong rec_per_key_part[HA_MAX_KEY_SEG * HA_MAX_POSSIBLE_KEY];
- &check_param.sort_buffer_length, 0, GET_ULL, REQUIRED_ARG, double new_rec_per_key_part[HA_MAX_KEY_SEG * HA_MAX_POSSIBLE_KEY];
+ &check_param.sort_buffer_length, 0, GET_ULONG, REQUIRED_ARG,
(long) SORT_BUFFER_INIT, (long) (MIN_SORT_BUFFER + MALLOC_OVERHEAD),
SIZE_T_MAX, (long) MALLOC_OVERHEAD, (long) 1L, 0},
{ "sort_key_blocks", OPT_SORT_KEY_BLOCKS, "",

View File

@ -791,6 +791,7 @@ fi
%changelog %changelog
* Wed Mar 13 2013 Honza Horak <hhorak@redhat.com> 5.5.29-9 * Wed Mar 13 2013 Honza Horak <hhorak@redhat.com> 5.5.29-9
- Let mariadb-embedded-devel conflict with MySQL-embedded-devel - Let mariadb-embedded-devel conflict with MySQL-embedded-devel
- Adjust mariadb-sortbuffer.patch to correspond with upstream patch
* Mon Mar 4 2013 Honza Horak <hhorak@redhat.com> 5.5.29-8 * Mon Mar 4 2013 Honza Horak <hhorak@redhat.com> 5.5.29-8
- Mask expected warnings about setrlimit in test suite - Mask expected warnings about setrlimit in test suite