mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
ha_myisam::repair should not touch file->save_state (directly, that is)
This commit is contained in:
parent
c5053baa7d
commit
b05427d092
1 changed files with 2 additions and 2 deletions
|
@ -571,7 +571,7 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool optimize)
|
|||
}
|
||||
|
||||
if (!optimize ||
|
||||
memcmp(file->state, & share->state.state, sizeof(MI_STATUS_INFO)) ||
|
||||
//memcmp(file->state, & share->state.state, sizeof(MI_STATUS_INFO)) ||
|
||||
((file->state->del || share->state.split != file->state->records) &&
|
||||
(!(param.testflag & T_QUICK) ||
|
||||
!(share->state.changed & STATE_NOT_OPTIMIZED_KEYS))))
|
||||
|
@ -630,7 +630,7 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool optimize)
|
|||
STATE_CRASHED_ON_REPAIR);
|
||||
file->update|=HA_STATE_CHANGED | HA_STATE_ROW_CHANGED;
|
||||
}
|
||||
file->save_state=file->s->state.state;
|
||||
//file->save_state=file->s->state.state;
|
||||
if (file->s->base.auto_key)
|
||||
update_auto_increment_key(¶m, file, 1);
|
||||
if (optimize_done)
|
||||
|
|
Loading…
Add table
Reference in a new issue