1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 Sun Microsystems
4
* Copyright (C) 2008 Sun Microsystems, Inc.
6
6
* This program is free software; you can redistribute it and/or modify
7
7
* it under the terms of the GNU General Public License as published by
42
42
namespace message { class Table; }
43
class TableIdentifier;
43
namespace identifier { class Table; }
45
int mysql_rm_table_part2(Session *session, TableList *tables, bool if_exists,
45
int rm_table_part2(Session *session, TableList *tables, bool if_exists,
46
46
bool drop_temporary);
47
bool quick_rm_table(Session& session,
48
TableIdentifier &identifier);
49
47
void close_cached_table(Session *session, Table *table);
51
49
void wait_while_table_is_used(Session *session, Table *table,
52
50
enum ha_extra_function function);
54
bool mysql_check_table(Session* session, TableList* table_list,
55
HA_CHECK_OPT* check_opt);
56
bool mysql_analyze_table(Session* session, TableList* table_list,
57
HA_CHECK_OPT* check_opt);
58
bool mysql_optimize_table(Session* session, TableList* table_list,
59
HA_CHECK_OPT* check_opt);
52
bool check_table(Session* session, TableList* table_list,
53
HA_CHECK_OPT* check_opt);
54
bool analyze_table(Session* session, TableList* table_list,
55
HA_CHECK_OPT* check_opt);
56
bool optimize_table(Session* session, TableList* table_list,
57
HA_CHECK_OPT* check_opt);
61
59
void write_bin_log(Session *session, const std::string &query);