summaryrefslogtreecommitdiff
path: root/myisam/mi_check.c
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-03-26 18:37:38 +0200
committermonty@mashka.mysql.fi <>2003-03-26 18:37:38 +0200
commit3bed7a6131bb688e3dbb5f11386d7641db356e6e (patch)
tree007e99eab2948fed93bba975a04801b24ba9c92a /myisam/mi_check.c
parenta55138fd9461af89068a63ac982539fee91c80c9 (diff)
parentff12a11829eddda1a69fed1bafb2230e009165fc (diff)
downloadmariadb-git-3bed7a6131bb688e3dbb5f11386d7641db356e6e.tar.gz
Merge with 4.0.13
Diffstat (limited to 'myisam/mi_check.c')
-rw-r--r--myisam/mi_check.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c
index a55096dd061..73bdcea9cc3 100644
--- a/myisam/mi_check.c
+++ b/myisam/mi_check.c
@@ -2096,7 +2096,7 @@ err:
Threaded repair of table using sorting
SYNOPSIS
- mi_repair_by_sort_parallel()
+ mi_repair_parallel()
param Repair parameters
info MyISAM handler to repair
name Name of table (for warnings)
@@ -2115,6 +2115,9 @@ err:
int mi_repair_parallel(MI_CHECK *param, register MI_INFO *info,
const char * name, int rep_quick)
{
+#ifndef THREAD
+ return mi_repair_by_sort(param, info, name, rep_quick);
+#else
int got_error;
uint i,key, total_key_length, istep;
ulong rec_length;
@@ -2485,6 +2488,7 @@ err:
share->pack.header_length=0;
}
DBUG_RETURN(got_error);
+#endif /* THREAD */
}
/* Read next record and return next key */