summaryrefslogtreecommitdiff
path: root/myisam/mi_check.c
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2002-10-22 00:25:36 +0000
committerserg@serg.mysql.com <>2002-10-22 00:25:36 +0000
commit43599856b2b8fb98cc260bf09e12dc11448a3f04 (patch)
tree281ff1e20ba8329433beedc3b2eff35c0d982813 /myisam/mi_check.c
parent0b2f4dac0bd388d57fc3553b70aadb1211fc8df1 (diff)
downloadmariadb-git-43599856b2b8fb98cc260bf09e12dc11448a3f04.tar.gz
make REPAIR killable
Diffstat (limited to 'myisam/mi_check.c')
-rw-r--r--myisam/mi_check.c5
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 (;;)