diff options
author | unknown <serg@serg.mysql.com> | 2002-10-22 00:25:36 +0000 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-10-22 00:25:36 +0000 |
commit | 1930ba12c360b2242d63b5fc2312634d72a2b244 (patch) | |
tree | 281ff1e20ba8329433beedc3b2eff35c0d982813 /myisam/mi_check.c | |
parent | b05427d0929d149d845a7f82d5260e615173b64a (diff) | |
download | mariadb-git-1930ba12c360b2242d63b5fc2312634d72a2b244.tar.gz |
make REPAIR killable
Diffstat (limited to 'myisam/mi_check.c')
-rw-r--r-- | myisam/mi_check.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c index aa1043b2bf8..ba90b2c5bcf 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -2508,7 +2508,7 @@ static int sort_key_read(MI_SORT_PARAM *sort_param, void *key) DBUG_RETURN(1); } sort_param->real_key_length= - (info->s->rec_reflength+ + (info->s->rec_reflength+ _mi_make_key(info, sort_param->key, (uchar*) key, sort_param->record, sort_param->filepos)); #ifdef HAVE_purify @@ -2587,6 +2587,9 @@ static int sort_get_next_record(MI_SORT_PARAM *sort_param) char llbuff[22],llbuff2[22]; DBUG_ENTER("sort_get_next_record"); + if (*killed_ptr(param)) + DBUG_RETURN(1); + switch (share->data_file_type) { case STATIC_RECORD: for (;;) |