Re: Fwd: [BUG] Table corrupted by specific sequence (4.0.3-beta)

Re: Fwd: [BUG] Table corrupted by specific sequence (4.0.3-beta)

am 30.08.2002 21:15:34 von Sinisa Milivojevic

Victoria Reznichenko writes:
> Hi!
> I tested the following bug report and also got table corruption on
> 4.0.3.
> On 4.0.2 is works well ..
>
> This is a forwarded message
> From: Antoine
> To:
> Date: Wednesday, August 28, 2002, 5:42:08 PM
> Subject: [BUG] Table corrupted by specific sequence (4.0.3-beta)
>


Thank you for your bug report that helped us fix this nasty bug.

Here is a patch for it:


===== /mnt/work/mysql-4.0/myisam/mi_delete_all.c 1.7 vs edited =====
*** /tmp/mi_delete_all.c-1.7-21793 Thu Aug 8 03:11:05 2002
--- edited//mnt/work/mysql-4.0/myisam/mi_delete_all.c Fri Aug 30 21:56:59 2002
***************
*** 35,45 ****
if (_mi_mark_file_changed(info))
goto err;

! info->state->records=info->state->del=state->split=0;
state->dellink = HA_OFFSET_ERROR;
state->sortkey= (ushort) ~0;
info->state->key_file_length=share->base.keystart;
! info->state->data_file_length=0;
info->state->empty=info->state->key_empty=0;
state->checksum=0;

--- 35,45 ----
if (_mi_mark_file_changed(info))
goto err;

! state->state.records=info->state->records=info->state->del=s tate->split=0;
state->dellink = HA_OFFSET_ERROR;
state->sortkey= (ushort) ~0;
info->state->key_file_length=share->base.keystart;
! state->state.data_file_length=info->state->data_file_length= 0;
info->state->empty=info->state->key_empty=0;
state->checksum=0;


--
Regards,
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread12454@lists.mysql.com
To unsubscribe, e-mail