29
29
#include <string>
30
30
#include <type_traits>
31
31
32
- #ifndef UNIV_HOTBACKUP
33
32
#include "binary_log_types.h"
34
33
#include "binlog_event.h"
35
34
#include "lex_string.h"
36
- #endif /* !UNIV_HOTBACKUP */
37
35
#include "m_ctype.h"
38
36
#include "m_string.h" // my_stpncpy
39
- #ifndef UNIV_HOTBACKUP
40
37
#include "my_alloc.h"
41
38
#include "my_base.h"
42
39
#include "my_check_opt.h" // T_EXTEND
43
40
#include "my_compiler.h"
44
- #endif /* !UNIV_HOTBACKUP */
45
41
#include "my_dbug.h"
46
42
#include "mysql_com.h"
47
- #ifndef UNIV_HOTBACKUP
48
43
#include "my_io.h"
49
44
#include "my_loglevel.h"
50
45
#include "my_psi_config.h"
136
131
#include "sql/sql_tablespace.h" // validate_tablespace_name
137
132
#include "sql/sql_time.h" // make_truncated_value_warning
138
133
#include "sql/sql_trigger.h" // change_trigger_table_name
139
- #endif /* !UNIV_HOTBACKUP */
140
134
#include "sql/strfunc.h" // find_type2
141
- #ifndef UNIV_HOTBACKUP
142
135
#include "sql/strfunc.h" // find_type2
143
136
#include "sql/system_variables.h"
144
- #endif /* !UNIV_HOTBACKUP */
145
137
#include "sql/table.h"
146
- #ifndef UNIV_HOTBACKUP
147
138
#include "sql/thd_raii.h"
148
139
#include "sql/thr_malloc.h"
149
140
#include "sql/transaction.h" // trans_commit_stmt
@@ -189,13 +180,6 @@ static bool prepare_enum_field(THD *thd, Create_field *sql_field);
189
180
static uint blob_length_by_type(enum_field_types type);
190
181
static const Create_field *get_field_by_index(Alter_info *alter_info, uint idx);
191
182
192
- #else /* !UNIV_HOTBACKUP */
193
- /* Branches which use these, should not be taken by backup. */
194
- #define ER_THD_OR_DEFAULT(thd,X) ("Cannot explain file name, MySQL error")
195
- #define get_quote_char_for_identifier(thd, conv_name, len) ('`')
196
- #endif /* !UNIV_HOTBACKUP */
197
-
198
- #ifndef UNIV_HOTBACKUP
199
183
/**
200
184
RAII class to control the atomic DDL commit on slave.
201
185
A slave context flag responsible to mark the DDL as committed is
@@ -250,7 +234,6 @@ static bool trans_intermediate_ddl_commit(THD *thd, bool error)
250
234
}
251
235
return trans_commit_stmt(thd) || trans_commit(thd);
252
236
}
253
- #endif /* !UNIV_HOTBACKUP */
254
237
255
238
256
239
/**
@@ -525,7 +508,6 @@ size_t explain_filename(THD* thd,
525
508
DBUG_RETURN(static_cast<size_t>(to_p - to));
526
509
}
527
510
528
- #ifndef UNIV_HOTBACKUP
529
511
void parse_filename(const char *filename, size_t filename_length,
530
512
const char ** schema_name, size_t *schema_name_length,
531
513
const char ** table_name, size_t *table_name_length,
@@ -640,7 +622,7 @@ void parse_filename(const char *filename, size_t filename_length,
640
622
*subpartition_name= id_ptr;
641
623
*subpartition_name_length= id_length;
642
624
}
643
- #endif /* !UNIV_HOTBACKUP */
625
+
644
626
645
627
/*
646
628
Translate a file name to a table name (WL #1324).
@@ -675,15 +657,13 @@ size_t filename_to_tablename(const char *from, char *to, size_t to_length,
675
657
system_charset_info, to, to_length, &errors);
676
658
if (errors) // Old 5.0 name
677
659
{
678
- #ifndef UNIV_HOTBACKUP
679
660
if (!stay_quiet) {
680
661
LogErr(ERROR_LEVEL, ER_INVALID_OR_OLD_TABLE_OR_DB_NAME, from);
681
662
}
682
663
/*
683
664
TODO: add a stored procedure for fix table and database names,
684
665
and mention its name in error log.
685
666
*/
686
- #endif /* !UNIV_HOTBACKUP */
687
667
}
688
668
}
689
669
@@ -692,7 +672,6 @@ size_t filename_to_tablename(const char *from, char *to, size_t to_length,
692
672
}
693
673
694
674
695
- #ifndef UNIV_HOTBACKUP
696
675
/*
697
676
Translate a table name to a file name (WL #1324).
698
677
@@ -15020,4 +14999,3 @@ static bool check_engine(THD *thd, const char *db_name,
15020
14999
15021
15000
DBUG_RETURN(false);
15022
15001
}
15023
- #endif /* !UNIV_HOTBACKUP */
0 commit comments