1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-06 13:10:12 +03:00
Files
mariadb/mysql-test/t
unknown 48cf65c037 BUG#23175 - MYISAM crash/repair failed during repair
Repair table could crash a server if there is not sufficient
memory (myisam_sort_buffer_size) to operate. Affects not only
repair, but also all statements that use create index by sort:
repair by sort, parallel repair, bulk insert.

Return an error if there is not sufficient memory to store at
least one key per BUFFPEK.

Also fixed memory leak if thr_find_all_keys returns an error.


myisam/sort.c:
  maxbuffer is number of BUFFPEK-s for repair. It is calculated
  as records / keys. keys is number of keys that can be stored
  in memory (myisam_sort_buffer_size). There must be sufficient
  memory to store both BUFFPEK-s and keys. It was checked
  correctly before this patch. However there is another
  requirement that wasn't checked: there must be sufficient
  memory for at least one key per BUFFPEK, otherwise repair
  by sort/parallel repair cannot operate.
  
  Return an error if there is not sufficient memory to store at
  least one key per BUFFPEK.
  
  Also fixed memory leak if thr_find_all_keys returns an error.
mysql-test/r/repair.result:
  A test case for BUG#23175.
mysql-test/t/repair.test:
  A test case for BUG#23175.
2006-10-18 17:57:29 +05:00
..
2006-05-01 21:30:09 +03:00
2005-09-08 12:09:30 +04:00
2005-11-06 02:11:12 +03:00
2006-09-20 09:46:12 -07:00
2006-04-20 12:35:33 +04:00
2006-04-11 15:26:18 +05:00
2006-05-06 23:48:13 -07:00
2005-09-06 18:03:08 +04:00
2006-04-18 20:57:31 -07:00
2006-06-30 18:29:27 +03:00
2006-03-06 18:34:38 +01:00
2005-11-25 10:41:22 +01:00
2005-09-30 11:39:49 +02:00
2006-08-15 13:12:27 +02:00
2005-07-31 04:28:01 -07:00
2005-09-05 12:33:25 +02:00
2006-04-20 22:15:38 -07:00
2005-01-30 10:24:03 +00:00
2004-11-15 17:03:54 +01:00
2005-12-08 16:13:53 +01:00
2005-08-09 00:13:49 +03:00
2006-01-26 00:06:20 +03:00