summaryrefslogtreecommitdiff
path: root/sql/ha_myisam.cc
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2000-11-02 17:36:21 +0100
committerserg@serg.mysql.com <>2000-11-02 17:36:21 +0100
commitff8df2c42bc453ca8d89e9461347f75b571d2fb5 (patch)
treec2c98089c936e8e55bca2409f12161c8224087c8 /sql/ha_myisam.cc
parenta896b8722b73f45e9d581a603c84bbcfe0d1b1cb (diff)
downloadmariadb-git-ff8df2c42bc453ca8d89e9461347f75b571d2fb5.tar.gz
Ill-minded FULLTEXT impilict initialization hack removed.
From now on FULLTEXT search is initialized expilictly in mysql_select()
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r--sql/ha_myisam.cc30
1 files changed, 8 insertions, 22 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc
index 7b1d274922d..76433a8eae5 100644
--- a/sql/ha_myisam.cc
+++ b/sql/ha_myisam.cc
@@ -353,7 +353,7 @@ int ha_myisam::restore(THD* thd, HA_CHECK_OPT *check_opt)
int error = 0;
const char* errmsg = "";
-
+
if (my_copy(src_path, fn_format(dst_path, table->path, "",
MI_NAME_DEXT, 4), MYF(MY_WME)))
{
@@ -361,11 +361,11 @@ int ha_myisam::restore(THD* thd, HA_CHECK_OPT *check_opt)
errmsg = "failed in my_copy( Error %d)";
goto err;
}
-
+
tmp_check_opt.init();
tmp_check_opt.quick = 1;
return repair(thd, &tmp_check_opt);
-
+
err:
{
MI_CHECK param;
@@ -375,7 +375,7 @@ int ha_myisam::restore(THD* thd, HA_CHECK_OPT *check_opt)
param.table_name = table->table_name;
param.testflag = 0;
mi_check_print_error(&param,errmsg, errno );
- return error;
+ return error;
}
}
@@ -450,7 +450,7 @@ int ha_myisam::repair(THD* thd, HA_CHECK_OPT *check_opt)
llstr(file->state->records, llbuff),
llstr(start_records, llbuff2),
table->path);
- }
+ }
return error;
}
@@ -496,7 +496,7 @@ int ha_myisam::repair(THD *thd, MI_CHECK &param, bool optimize)
DBUG_RETURN(HA_ADMIN_FAILED);
}
- if (!optimize ||
+ if (!optimize ||
((file->state->del || share->state.split != file->state->records) &&
(!param.opt_rep_quick ||
!(share->state.changed & STATE_NOT_OPTIMIZED_KEYS))))
@@ -621,9 +621,9 @@ bool ha_myisam::check_and_repair(THD *thd)
{
sql_print_error("Warning: Recovering table: '%s'",table->path);
check_opt.quick= !check_opt.retry_without_quick && !marked_crashed;
- check_opt.flags=(((myisam_recover_options & HA_RECOVER_BACKUP) ?
+ check_opt.flags=(((myisam_recover_options & HA_RECOVER_BACKUP) ?
T_BACKUP_DATA : 0) |
- (!(myisam_recover_options & HA_RECOVER_FORCE) ?
+ (!(myisam_recover_options & HA_RECOVER_FORCE) ?
T_SAFE_REPAIR : 0)) | T_AUTO_REPAIR;
if (repair(thd, &check_opt))
error=1;
@@ -1079,20 +1079,6 @@ ha_rows ha_myisam::records_in_range(int inx,
end_search_flag);
}
-int ha_myisam::ft_init(uint inx, const byte *key, uint keylen, bool presort)
-{
- if (ft_handler)
- return -1;
-
- // Do the search!
- ft_handler=ft_init_search(file,inx,(byte*) key,keylen,presort);
-
- if (!ft_handler)
- return (my_errno ? my_errno : -1);
-
- return 0;
-}
-
int ha_myisam::ft_read(byte * buf)
{
int error;