1 | /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
2 | // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: |
3 | #ident "$Id$" |
4 | /*====== |
5 | This file is part of TokuDB |
6 | |
7 | |
8 | Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. |
9 | |
10 | TokuDBis is free software: you can redistribute it and/or modify |
11 | it under the terms of the GNU General Public License, version 2, |
12 | as published by the Free Software Foundation. |
13 | |
14 | TokuDB is distributed in the hope that it will be useful, |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | GNU General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU General Public License |
20 | along with TokuDB. If not, see <http://www.gnu.org/licenses/>. |
21 | |
22 | ======= */ |
23 | |
24 | #ident "Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved." |
25 | |
26 | #if defined(TOKU_INCLUDE_ALTER_55) |
27 | |
28 | #include "ha_tokudb_alter_common.cc" |
29 | |
30 | bool ha_tokudb::try_hot_alter_table() { |
31 | TOKUDB_DBUG_ENTER("try_hot_alter_table" ); |
32 | THD *thd = ha_thd(); |
33 | bool disable_hot_alter = get_disable_hot_alter(thd); |
34 | DBUG_RETURN(!disable_hot_alter); |
35 | } |
36 | |
37 | int ha_tokudb::new_alter_table_frm_data(const uchar *frm_data, size_t frm_len) { |
38 | return write_frm_data(frm_data, frm_len); |
39 | } |
40 | |
41 | #endif |
42 | |