summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-06-11 11:20:31 +0300
committermonty@mashka.mysql.fi <>2002-06-11 11:20:31 +0300
commit2aecdd1a91bf8386829146609ce0219c51793841 (patch)
tree8fcaabe013fff43cf466235067f2c47f0cd66531 /sql/sql_table.cc
parentdb41437a100e204e60f45d5c9a6b26f63e512659 (diff)
downloadmariadb-git-2aecdd1a91bf8386829146609ce0219c51793841.tar.gz
Big code cleanup/review before 4.0.2 release.
(All commit emails since 4.0.1 checked) This had to be done now, before the 4.1 tree changes to much, to make it easy to propagate bug fixes to the 4.1 tree.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc21
1 files changed, 14 insertions, 7 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index fe66b14d697..9695f273327 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -872,8 +872,9 @@ static int send_check_errmsg(THD* thd, TABLE_LIST* table,
return 1;
}
+
static int prepare_for_restore(THD* thd, TABLE_LIST* table,
- HA_CHECK_OPT *check_opt)
+ HA_CHECK_OPT *check_opt)
{
DBUG_ENTER("prepare_for_restore");
@@ -915,15 +916,18 @@ static int prepare_for_restore(THD* thd, TABLE_LIST* table,
}
}
- // now we should be able to open the partially restored table
- // to finish the restore in the handler later on
+ /*
+ Now we should be able to open the partially restored table
+ to finish the restore in the handler later on
+ */
if (!(table->table = reopen_name_locked_table(thd, table)))
- unlock_table_name(thd, table);
+ unlock_table_name(thd, table);
DBUG_RETURN(0);
}
+
static int prepare_for_repair(THD* thd, TABLE_LIST* table,
- HA_CHECK_OPT *check_opt)
+ HA_CHECK_OPT *check_opt)
{
DBUG_ENTER("prepare_for_repair");
@@ -966,13 +970,16 @@ static int prepare_for_repair(THD* thd, TABLE_LIST* table,
}
}
- // now we should be able to open the partially repaired table
- // to finish the repair in the handler later on
+ /*
+ Now we should be able to open the partially repaired table
+ to finish the repair in the handler later on.
+ */
if (!(table->table = reopen_name_locked_table(thd, table)))
unlock_table_name(thd, table);
DBUG_RETURN(0);
}
+
static int mysql_admin_table(THD* thd, TABLE_LIST* tables,
HA_CHECK_OPT* check_opt,
const char *operator_name,