Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.216.32
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
include /
mysql /
server /
private /
Delete
Unzip
Name
Size
Permission
Date
Action
atomic
[ DIR ]
drwxr-xr-x
2022-05-23 22:35
authors.h
9.35
KB
-rw-r--r--
2022-05-18 13:19
bounded_queue.h
6.61
KB
-rw-r--r--
2022-05-18 13:19
client_settings.h
1.89
KB
-rw-r--r--
2022-05-18 13:19
compat56.h
1.95
KB
-rw-r--r--
2022-05-18 13:19
config.h
14.49
KB
-rw-r--r--
2022-05-18 14:40
contributors.h
2.92
KB
-rw-r--r--
2022-05-18 13:19
create_options.h
4.21
KB
-rw-r--r--
2022-05-18 13:19
custom_conf.h
1.06
KB
-rw-r--r--
2022-05-18 13:19
datadict.h
1.48
KB
-rw-r--r--
2022-05-18 13:19
debug_sync.h
1.73
KB
-rw-r--r--
2022-05-18 13:19
derror.h
1.02
KB
-rw-r--r--
2022-05-18 13:19
des_key_file.h
1.21
KB
-rw-r--r--
2022-05-18 13:19
discover.h
1.57
KB
-rw-r--r--
2022-05-18 13:19
dur_prop.h
1.06
KB
-rw-r--r--
2022-05-18 13:19
embedded_priv.h
1.47
KB
-rw-r--r--
2022-05-18 13:19
event_data_objects.h
3.84
KB
-rw-r--r--
2022-05-18 13:19
event_db_repository.h
3.41
KB
-rw-r--r--
2022-05-18 13:19
event_parse_data.h
2.87
KB
-rw-r--r--
2022-05-18 13:19
event_queue.h
3.29
KB
-rw-r--r--
2022-05-18 13:19
event_scheduler.h
3.21
KB
-rw-r--r--
2022-05-18 13:19
events.h
4.43
KB
-rw-r--r--
2022-05-18 13:19
field.h
147.53
KB
-rw-r--r--
2022-05-18 13:19
filesort.h
4.61
KB
-rw-r--r--
2022-05-18 13:19
filesort_utils.h
4
KB
-rw-r--r--
2022-05-18 13:19
ft_global.h
3.04
KB
-rw-r--r--
2022-05-18 13:19
gcalc_slicescan.h
16.86
KB
-rw-r--r--
2022-05-18 13:19
gcalc_tools.h
11.38
KB
-rw-r--r--
2022-05-18 13:19
group_by_handler.h
3.08
KB
-rw-r--r--
2022-05-18 13:19
gstream.h
2.44
KB
-rw-r--r--
2022-05-18 13:19
ha_partition.h
50.87
KB
-rw-r--r--
2022-05-18 13:19
handler.h
155.48
KB
-rw-r--r--
2022-05-18 13:19
hash.h
4.39
KB
-rw-r--r--
2022-05-18 13:19
hash_filo.h
5.4
KB
-rw-r--r--
2022-05-18 13:19
heap.h
9.23
KB
-rw-r--r--
2022-05-18 13:19
hostname.h
5.35
KB
-rw-r--r--
2022-05-18 13:19
ilist.h
6.27
KB
-rw-r--r--
2022-05-18 13:19
init.h
955
B
-rw-r--r--
2022-05-18 13:19
innodb_priv.h
1.39
KB
-rw-r--r--
2022-05-18 13:19
item.h
203.54
KB
-rw-r--r--
2022-05-18 13:19
item_cmpfunc.h
91.97
KB
-rw-r--r--
2022-05-18 13:19
item_create.h
6.76
KB
-rw-r--r--
2022-05-18 13:19
item_func.h
80.86
KB
-rw-r--r--
2022-05-18 13:19
item_geofunc.h
23.31
KB
-rw-r--r--
2022-05-18 13:19
item_inetfunc.h
7.61
KB
-rw-r--r--
2022-05-18 13:19
item_jsonfunc.h
13.04
KB
-rw-r--r--
2022-05-18 13:19
item_row.h
4.33
KB
-rw-r--r--
2022-05-18 13:19
item_strfunc.h
46.53
KB
-rw-r--r--
2022-05-18 13:19
item_subselect.h
51.04
KB
-rw-r--r--
2022-05-18 13:19
item_sum.h
56.22
KB
-rw-r--r--
2022-05-18 13:19
item_timefunc.h
41
KB
-rw-r--r--
2022-05-18 13:19
item_windowfunc.h
22.36
KB
-rw-r--r--
2022-05-18 13:19
item_xmlfunc.h
3.42
KB
-rw-r--r--
2022-05-18 13:19
key.h
2.05
KB
-rw-r--r--
2022-05-18 13:19
keycaches.h
1.94
KB
-rw-r--r--
2022-05-18 13:19
lex.h
26.32
KB
-rw-r--r--
2022-05-18 13:19
lex_hash.h
126.06
KB
-rw-r--r--
2022-05-18 14:44
lex_symbol.h
1.29
KB
-rw-r--r--
2022-05-18 13:19
lex_token.h
37.96
KB
-rw-r--r--
2022-05-18 14:44
lf.h
6.24
KB
-rw-r--r--
2022-05-18 13:19
lock.h
2.11
KB
-rw-r--r--
2022-05-18 13:19
log.h
41.65
KB
-rw-r--r--
2022-05-18 13:19
log_event.h
158.17
KB
-rw-r--r--
2022-05-18 13:19
log_event_old.h
19.2
KB
-rw-r--r--
2022-05-18 13:19
log_slow.h
1.55
KB
-rw-r--r--
2022-05-18 13:19
maria.h
17.28
KB
-rw-r--r--
2022-05-18 13:19
mdl.h
33.03
KB
-rw-r--r--
2022-05-18 13:19
mem_root_array.h
6.77
KB
-rw-r--r--
2022-05-18 13:19
message.h
2.06
KB
-rw-r--r--
2022-05-18 13:19
multi_range_read.h
22.17
KB
-rw-r--r--
2022-05-18 13:19
my_alarm.h
2.24
KB
-rw-r--r--
2022-05-18 13:19
my_apc.h
4.61
KB
-rw-r--r--
2022-05-18 13:19
my_atomic.h
16.66
KB
-rw-r--r--
2022-05-18 13:19
my_base.h
25.05
KB
-rw-r--r--
2022-05-18 13:19
my_bit.h
3.15
KB
-rw-r--r--
2022-05-18 13:19
my_bitmap.h
5.98
KB
-rw-r--r--
2022-05-18 13:19
my_check_opt.h
2.56
KB
-rw-r--r--
2022-05-18 13:19
my_compare.h
5.36
KB
-rw-r--r--
2022-05-18 13:19
my_context.h
6.59
KB
-rw-r--r--
2022-05-18 13:19
my_cpu.h
1.45
KB
-rw-r--r--
2022-05-18 13:19
my_crypt.h
904
B
-rw-r--r--
2022-05-18 13:19
my_decimal.h
12.52
KB
-rw-r--r--
2022-05-18 13:19
my_default.h
2.47
KB
-rw-r--r--
2022-05-18 13:19
my_handler_errors.h
4.52
KB
-rw-r--r--
2022-05-18 13:19
my_json_writer.h
4.88
KB
-rw-r--r--
2022-05-18 13:19
my_libwrap.h
1.16
KB
-rw-r--r--
2022-05-18 13:19
my_md5.h
1.45
KB
-rw-r--r--
2022-05-18 13:19
my_nosys.h
1.4
KB
-rw-r--r--
2022-05-18 13:19
my_rdtsc.h
3.87
KB
-rw-r--r--
2022-05-18 13:19
my_rnd.h
1.04
KB
-rw-r--r--
2022-05-18 13:19
my_service_manager.h
1.47
KB
-rw-r--r--
2022-05-18 13:19
my_stacktrace.h
2.97
KB
-rw-r--r--
2022-05-18 13:19
my_time.h
8.75
KB
-rw-r--r--
2022-05-18 13:19
my_tree.h
3.89
KB
-rw-r--r--
2022-05-18 13:19
my_uctype.h
67.9
KB
-rw-r--r--
2022-05-18 13:19
my_user.h
1.12
KB
-rw-r--r--
2022-05-18 13:19
myisam.h
16.84
KB
-rw-r--r--
2022-05-18 13:19
myisamchk.h
4.7
KB
-rw-r--r--
2022-05-18 13:19
myisammrg.h
4.63
KB
-rw-r--r--
2022-05-18 13:19
myisampack.h
14.58
KB
-rw-r--r--
2022-05-18 13:19
mysql_async.h
1.77
KB
-rw-r--r--
2022-05-18 13:19
mysqld.h
31.32
KB
-rw-r--r--
2022-05-18 13:19
mysqld_default_groups.h
169
B
-rw-r--r--
2022-05-18 13:19
mysqld_suffix.h
1.17
KB
-rw-r--r--
2022-05-18 13:19
mysys_err.h
2.81
KB
-rw-r--r--
2022-05-18 13:19
nt_servc.h
3
KB
-rw-r--r--
2022-05-18 13:19
opt_range.h
53.25
KB
-rw-r--r--
2022-05-18 13:19
opt_subselect.h
13.76
KB
-rw-r--r--
2022-05-18 13:19
parse_file.h
4.12
KB
-rw-r--r--
2022-05-18 13:19
partition_element.h
4.52
KB
-rw-r--r--
2022-05-18 13:19
partition_info.h
14.25
KB
-rw-r--r--
2022-05-18 13:19
password.h
1.17
KB
-rw-r--r--
2022-05-18 13:19
pcre.h
30.97
KB
-rw-r--r--
2022-05-18 14:40
probes_mysql.h
973
B
-rw-r--r--
2022-05-18 13:19
probes_mysql_dtrace.h
32.23
KB
-rw-r--r--
2022-05-18 14:43
probes_mysql_nodtrace.h
4.89
KB
-rw-r--r--
2022-05-18 14:43
procedure.h
5.83
KB
-rw-r--r--
2022-05-18 13:19
protocol.h
9.72
KB
-rw-r--r--
2022-05-18 13:19
queues.h
3.51
KB
-rw-r--r--
2022-05-18 13:19
records.h
2.99
KB
-rw-r--r--
2022-05-18 13:19
repl_failsafe.h
1.69
KB
-rw-r--r--
2022-05-18 13:19
replication.h
15.96
KB
-rw-r--r--
2022-05-18 13:19
rijndael.h
1.67
KB
-rw-r--r--
2022-05-18 13:19
rpl_constants.h
3.28
KB
-rw-r--r--
2022-05-18 13:19
rpl_filter.h
4.41
KB
-rw-r--r--
2022-05-18 13:19
rpl_gtid.h
10.47
KB
-rw-r--r--
2022-05-18 13:19
rpl_handler.h
5.53
KB
-rw-r--r--
2022-05-18 13:19
rpl_injector.h
9.42
KB
-rw-r--r--
2022-05-18 13:19
rpl_mi.h
12.36
KB
-rw-r--r--
2022-05-18 13:19
rpl_parallel.h
13.3
KB
-rw-r--r--
2022-05-18 13:19
rpl_record.h
1.61
KB
-rw-r--r--
2022-05-18 13:19
rpl_record_old.h
1.37
KB
-rw-r--r--
2022-05-18 13:19
rpl_reporting.h
2.96
KB
-rw-r--r--
2022-05-18 13:19
rpl_rli.h
31.89
KB
-rw-r--r--
2022-05-18 13:19
rpl_tblmap.h
3.1
KB
-rw-r--r--
2022-05-18 13:19
rpl_utility.h
9.32
KB
-rw-r--r--
2022-05-18 13:19
scheduler.h
3.43
KB
-rw-r--r--
2022-05-18 13:19
service_versions.h
1.82
KB
-rw-r--r--
2022-05-18 13:19
session_tracker.h
8.8
KB
-rw-r--r--
2022-05-18 13:19
set_var.h
14.52
KB
-rw-r--r--
2022-05-18 13:19
slave.h
11.14
KB
-rw-r--r--
2022-05-18 13:19
sp.h
7.13
KB
-rw-r--r--
2022-05-18 13:19
sp_cache.h
2.02
KB
-rw-r--r--
2022-05-18 13:19
sp_head.h
36.17
KB
-rw-r--r--
2022-05-18 13:19
sp_pcontext.h
16.61
KB
-rw-r--r--
2022-05-18 13:19
sp_rcontext.h
15.43
KB
-rw-r--r--
2022-05-18 13:19
span.h
3.83
KB
-rw-r--r--
2022-05-18 13:19
spatial.h
20.68
KB
-rw-r--r--
2022-05-18 13:19
sql_acl.h
17.23
KB
-rw-r--r--
2022-05-18 13:19
sql_admin.h
2.69
KB
-rw-r--r--
2022-05-18 13:19
sql_alter.h
12
KB
-rw-r--r--
2022-05-18 13:19
sql_analyse.h
10.91
KB
-rw-r--r--
2022-05-18 13:19
sql_analyze_stmt.h
7.61
KB
-rw-r--r--
2022-05-18 13:19
sql_array.h
5.92
KB
-rw-r--r--
2022-05-18 13:19
sql_audit.h
14.57
KB
-rw-r--r--
2022-05-18 13:19
sql_base.h
24.9
KB
-rw-r--r--
2022-05-18 13:19
sql_basic_types.h
951
B
-rw-r--r--
2022-05-18 13:19
sql_binlog.h
895
B
-rw-r--r--
2022-05-18 13:19
sql_bitmap.h
7.2
KB
-rw-r--r--
2022-05-18 13:19
sql_bootstrap.h
1.63
KB
-rw-r--r--
2022-05-18 13:19
sql_cache.h
20.88
KB
-rw-r--r--
2022-05-18 13:19
sql_callback.h
1.51
KB
-rw-r--r--
2022-05-18 13:19
sql_class.h
195.45
KB
-rw-r--r--
2022-05-18 13:19
sql_cmd.h
7.26
KB
-rw-r--r--
2022-05-18 13:19
sql_connect.h
3.56
KB
-rw-r--r--
2022-05-18 13:19
sql_const.h
10.43
KB
-rw-r--r--
2022-05-18 13:19
sql_crypt.h
1.39
KB
-rw-r--r--
2022-05-18 13:19
sql_cte.h
14.64
KB
-rw-r--r--
2022-05-18 13:19
sql_cursor.h
2.02
KB
-rw-r--r--
2022-05-18 13:19
sql_db.h
2.01
KB
-rw-r--r--
2022-05-18 13:19
sql_delete.h
1.32
KB
-rw-r--r--
2022-05-18 13:19
sql_derived.h
1.51
KB
-rw-r--r--
2022-05-18 13:19
sql_digest.h
3.72
KB
-rw-r--r--
2022-05-18 13:19
sql_digest_stream.h
1.53
KB
-rw-r--r--
2022-05-18 13:19
sql_do.h
954
B
-rw-r--r--
2022-05-18 13:19
sql_error.h
29.86
KB
-rw-r--r--
2022-05-18 13:19
sql_explain.h
24.63
KB
-rw-r--r--
2022-05-18 13:19
sql_expression_cache.h
4.21
KB
-rw-r--r--
2022-05-18 13:19
sql_get_diagnostics.h
7.66
KB
-rw-r--r--
2022-05-18 13:19
sql_handler.h
2.68
KB
-rw-r--r--
2022-05-18 13:19
sql_help.h
920
B
-rw-r--r--
2022-05-18 13:19
sql_hset.h
3.2
KB
-rw-r--r--
2022-05-18 13:19
sql_insert.h
2.06
KB
-rw-r--r--
2022-05-18 13:19
sql_join_cache.h
46.6
KB
-rw-r--r--
2022-05-18 13:19
sql_lex.h
103.48
KB
-rw-r--r--
2022-05-18 13:19
sql_lifo_buffer.h
9.23
KB
-rw-r--r--
2022-05-18 13:19
sql_list.h
21.37
KB
-rw-r--r--
2022-05-18 13:19
sql_load.h
1.24
KB
-rw-r--r--
2022-05-18 13:19
sql_locale.h
2.67
KB
-rw-r--r--
2022-05-18 13:19
sql_manager.h
960
B
-rw-r--r--
2022-05-18 13:19
sql_mode.h
6.57
KB
-rw-r--r--
2022-05-18 13:19
sql_parse.h
8.02
KB
-rw-r--r--
2022-05-18 13:19
sql_partition.h
11.43
KB
-rw-r--r--
2022-05-18 13:19
sql_partition_admin.h
5.68
KB
-rw-r--r--
2022-05-18 13:19
sql_plist.h
7.58
KB
-rw-r--r--
2022-05-18 13:19
sql_plugin.h
7.48
KB
-rw-r--r--
2022-05-18 13:19
sql_plugin_compat.h
2.18
KB
-rw-r--r--
2022-05-18 13:19
sql_prepare.h
11.3
KB
-rw-r--r--
2022-05-18 13:19
sql_priv.h
15.99
KB
-rw-r--r--
2022-05-18 13:19
sql_profile.h
7.39
KB
-rw-r--r--
2022-05-18 13:19
sql_reload.h
1.01
KB
-rw-r--r--
2022-05-18 13:19
sql_rename.h
941
B
-rw-r--r--
2022-05-18 13:19
sql_repl.h
3.24
KB
-rw-r--r--
2022-05-18 13:19
sql_select.h
77.03
KB
-rw-r--r--
2022-05-18 13:19
sql_servers.h
1.78
KB
-rw-r--r--
2022-05-18 13:19
sql_show.h
8.84
KB
-rw-r--r--
2022-05-18 13:19
sql_signal.h
4.05
KB
-rw-r--r--
2022-05-18 13:19
sql_sort.h
4.1
KB
-rw-r--r--
2022-05-18 13:19
sql_statistics.h
11.56
KB
-rw-r--r--
2022-05-18 13:19
sql_string.h
21.94
KB
-rw-r--r--
2022-05-18 13:19
sql_table.h
11.06
KB
-rw-r--r--
2022-05-18 13:19
sql_tablespace.h
956
B
-rw-r--r--
2022-05-18 13:19
sql_test.h
1.45
KB
-rw-r--r--
2022-05-18 13:19
sql_time.h
10.28
KB
-rw-r--r--
2022-05-18 13:19
sql_trigger.h
10.58
KB
-rw-r--r--
2022-05-18 13:19
sql_truncate.h
2.01
KB
-rw-r--r--
2022-05-18 13:19
sql_type.h
19.73
KB
-rw-r--r--
2022-05-18 13:19
sql_type_int.h
2.85
KB
-rw-r--r--
2022-05-18 13:19
sql_udf.h
4.04
KB
-rw-r--r--
2022-05-18 13:19
sql_union.h
1.1
KB
-rw-r--r--
2022-05-18 13:19
sql_update.h
1.92
KB
-rw-r--r--
2022-05-18 13:19
sql_view.h
2.26
KB
-rw-r--r--
2022-05-18 13:19
sql_window.h
5.89
KB
-rw-r--r--
2022-05-18 13:19
sql_yacc.h
35.19
KB
-rw-r--r--
2022-05-18 13:19
ssl_compat.h
2.97
KB
-rw-r--r--
2022-05-18 13:19
strfunc.h
2.21
KB
-rw-r--r--
2022-05-18 13:19
structs.h
20.36
KB
-rw-r--r--
2022-05-18 13:19
sys_vars_shared.h
2.6
KB
-rw-r--r--
2022-05-18 13:19
t_ctype.h
5.51
KB
-rw-r--r--
2022-05-18 13:19
table.h
95.89
KB
-rw-r--r--
2022-05-18 13:19
table_cache.h
4.24
KB
-rw-r--r--
2022-05-18 13:19
thr_alarm.h
2.87
KB
-rw-r--r--
2022-05-18 13:19
thr_lock.h
6.66
KB
-rw-r--r--
2022-05-18 13:19
thr_malloc.h
1.22
KB
-rw-r--r--
2022-05-18 13:19
thr_timer.h
1.43
KB
-rw-r--r--
2022-05-18 13:19
thread_pool_priv.h
4.48
KB
-rw-r--r--
2022-05-18 13:19
threadpool.h
4.32
KB
-rw-r--r--
2022-05-18 13:19
transaction.h
1.57
KB
-rw-r--r--
2022-05-18 13:19
tzfile.h
4.9
KB
-rw-r--r--
2022-05-18 13:19
tztime.h
3.28
KB
-rw-r--r--
2022-05-18 13:19
uniques.h
4.05
KB
-rw-r--r--
2022-05-18 13:19
unireg.h
7.22
KB
-rw-r--r--
2022-05-18 13:19
violite.h
9.83
KB
-rw-r--r--
2022-05-18 13:19
waiting_threads.h
4.45
KB
-rw-r--r--
2022-05-18 13:19
welcome_copyright_notice.h
1.19
KB
-rw-r--r--
2022-05-18 13:19
win_tzname_data.h
6.31
KB
-rw-r--r--
2022-05-18 13:19
winservice.h
1.17
KB
-rw-r--r--
2022-05-18 13:19
wqueue.h
1.55
KB
-rw-r--r--
2022-05-18 13:19
wsrep.h
3.01
KB
-rw-r--r--
2022-05-18 13:19
wsrep_applier.h
1.67
KB
-rw-r--r--
2022-05-18 13:19
wsrep_binlog.h
2.06
KB
-rw-r--r--
2022-05-18 13:19
wsrep_mysqld.h
13.88
KB
-rw-r--r--
2022-05-18 13:19
wsrep_mysqld_c.h
1.2
KB
-rw-r--r--
2022-05-18 13:19
wsrep_priv.h
2.07
KB
-rw-r--r--
2022-05-18 13:19
wsrep_sst.h
3.08
KB
-rw-r--r--
2022-05-18 13:19
wsrep_thd.h
2.05
KB
-rw-r--r--
2022-05-18 13:19
wsrep_utils.h
9.02
KB
-rw-r--r--
2022-05-18 13:19
wsrep_var.h
3.72
KB
-rw-r--r--
2022-05-18 13:19
wsrep_xid.h
1.38
KB
-rw-r--r--
2022-05-18 13:19
Save
Rename
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. Copyright (c) 2009, 2016, MariaDB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ #ifndef SLAVE_H #define SLAVE_H /** MASTER_DELAY can be at most (1 << 31) - 1. */ #define MASTER_DELAY_MAX (0x7FFFFFFF) #if INT_MAX < 0x7FFFFFFF #error "don't support platforms where INT_MAX < 0x7FFFFFFF" #endif /** @defgroup Replication Replication @{ @file */ /** Some of defines are need in parser even though replication is not compiled in (embedded). */ /** The maximum is defined as (ULONG_MAX/1000) with 4 bytes ulong */ #define SLAVE_MAX_HEARTBEAT_PERIOD 4294967 #ifdef HAVE_REPLICATION #include "log.h" #include "my_list.h" #include "rpl_filter.h" #include "rpl_tblmap.h" #define SLAVE_NET_TIMEOUT 60 #define MAX_SLAVE_ERROR ER_ERROR_LAST+1 #define MAX_REPLICATION_THREAD 64 // Forward declarations class Relay_log_info; class Master_info; class Master_info_index; struct rpl_group_info; struct rpl_parallel_thread; int init_intvar_from_file(int* var, IO_CACHE* f, int default_val); int init_strvar_from_file(char *var, int max_size, IO_CACHE *f, const char *default_val); int init_floatvar_from_file(float* var, IO_CACHE* f, float default_val); int init_dynarray_intvar_from_file(DYNAMIC_ARRAY* arr, IO_CACHE* f); /***************************************************************************** MySQL Replication Replication is implemented via two types of threads: I/O Thread - One of these threads is started for each master server. They maintain a connection to their master server, read log events from the master as they arrive, and queues them into a single, shared relay log file. A Master_info represents each of these threads. SQL Thread - One of these threads is started and reads from the relay log file, executing each event. A Relay_log_info represents this thread. Buffering in the relay log file makes it unnecessary to reread events from a master server across a slave restart. It also decouples the slave from the master where long-running updates and event logging are concerned--ie it can continue to log new events while a slow query executes on the slave. *****************************************************************************/ /* MUTEXES in replication: LOCK_active_mi: [note: this was originally meant for multimaster, to switch from a master to another, to protect active_mi] It is used to SERIALIZE ALL administrative commands of replication: START SLAVE, STOP SLAVE, CHANGE MASTER, RESET SLAVE, end_slave() (when mysqld stops) [init_slave() does not need it it's called early]. Any of these commands holds the mutex from the start till the end. This thus protects us against a handful of deadlocks (consider start_slave_thread() which, when starting the I/O thread, releases mi->run_lock, keeps rli->run_lock, and tries to re-acquire mi->run_lock). Currently active_mi never moves (it's created at startup and deleted at shutdown, and not changed: it always points to the same Master_info struct), because we don't have multimaster. So for the moment, mi does not move, and mi->rli does not either. In Master_info: run_lock, data_lock run_lock protects all information about the run state: slave_running, thd and the existence of the I/O thread (to stop/start it, you need this mutex). data_lock protects some moving members of the struct: counters (log name, position) and relay log (MYSQL_BIN_LOG object). In Relay_log_info: run_lock, data_lock see Master_info However, note that run_lock does not protect Relay_log_info.run_state; that is protected by data_lock. Order of acquisition: if you want to have LOCK_active_mi and a run_lock, you must acquire LOCK_active_mi first. In MYSQL_BIN_LOG: LOCK_log, LOCK_index of the binlog and the relay log LOCK_log: when you write to it. LOCK_index: when you create/delete a binlog (so that you have to update the .index file). */ extern ulong master_retry_count; extern MY_BITMAP slave_error_mask; extern char slave_skip_error_names[]; extern bool use_slave_mask; extern char *slave_load_tmpdir; extern char *master_info_file; extern MYSQL_PLUGIN_IMPORT char *relay_log_info_file; extern char *opt_relay_logname, *opt_relaylog_index_name; extern my_bool opt_skip_slave_start, opt_reckless_slave; extern my_bool opt_log_slave_updates; extern char *opt_slave_skip_errors; extern my_bool opt_replicate_annotate_row_events; extern ulonglong relay_log_space_limit; extern ulonglong opt_read_binlog_speed_limit; extern ulonglong slave_skipped_errors; extern const char *relay_log_index; extern const char *relay_log_basename; /* 4 possible values for Master_info::slave_running and Relay_log_info::slave_running. The values 0,1,2,3 are very important: to keep the diff small, I didn't substitute places where we use 0/1 with the newly defined symbols. So don't change these values. The same way, code is assuming that in Relay_log_info we use only values 0/1. I started with using an enum, but enum_variable=1; is not legal so would have required many line changes. */ #define MYSQL_SLAVE_NOT_RUN 0 #define MYSQL_SLAVE_RUN_NOT_CONNECT 1 #define MYSQL_SLAVE_RUN_CONNECT 2 #define MYSQL_SLAVE_RUN_READING 3 #define RPL_LOG_NAME (rli->group_master_log_name[0] ? rli->group_master_log_name :\ "FIRST") #define IO_RPL_LOG_NAME (mi->master_log_name[0] ? mi->master_log_name :\ "FIRST") /* If the following is set, if first gives an error, second will be tried. Otherwise, if first fails, we fail. */ #define SLAVE_FORCE_ALL 4 /* Values for the option --replicate-events-marked-for-skip. Must match the names in replicate_events_marked_for_skip_names in sys_vars.cc */ #define RPL_SKIP_REPLICATE 0 #define RPL_SKIP_FILTER_ON_SLAVE 1 #define RPL_SKIP_FILTER_ON_MASTER 2 int init_slave(); int init_recovery(Master_info* mi, const char** errmsg); void init_slave_skip_errors(const char* arg); int register_slave_on_master(MYSQL* mysql); int terminate_slave_threads(Master_info* mi, int thread_mask, bool skip_lock = 0); int start_slave_threads(THD *thd, bool need_slave_mutex, bool wait_for_start, Master_info* mi, const char* master_info_fname, const char* slave_info_fname, int thread_mask); /* cond_lock is usually same as start_lock. It is needed for the case when start_lock is 0 which happens if start_slave_thread() is called already inside the start_lock section, but at the same time we want a mysql_cond_wait() on start_cond, start_lock */ int start_slave_thread( #ifdef HAVE_PSI_INTERFACE PSI_thread_key thread_key, #endif pthread_handler h_func, mysql_mutex_t *start_lock, mysql_mutex_t *cond_lock, mysql_cond_t *start_cond, volatile uint *slave_running, volatile ulong *slave_run_id, Master_info *mi); /* If fd is -1, dump to NET */ int mysql_table_dump(THD* thd, const char* db, const char* tbl_name, int fd = -1); /* retrieve table from master and copy to slave*/ int fetch_master_table(THD* thd, const char* db_name, const char* table_name, Master_info* mi, MYSQL* mysql, bool overwrite); void show_master_info_get_fields(THD *thd, List<Item> *field_list, bool full, size_t gtid_pos_length); bool show_master_info(THD* thd, Master_info* mi, bool full); bool show_all_master_info(THD* thd); void show_binlog_info_get_fields(THD *thd, List<Item> *field_list); bool show_binlog_info(THD* thd); bool rpl_master_has_bug(const Relay_log_info *rli, uint bug_id, bool report, bool (*pred)(const void *), const void *param); bool rpl_master_erroneous_autoinc(THD* thd); const char *print_slave_db_safe(const char *db); void skip_load_data_infile(NET* net); void slave_prepare_for_shutdown(); void end_slave(); /* release slave threads */ void close_active_mi(); /* clean up slave threads data */ void clear_until_condition(Relay_log_info* rli); void clear_slave_error(Relay_log_info* rli); void end_relay_log_info(Relay_log_info* rli); void init_thread_mask(int* mask,Master_info* mi,bool inverse); Format_description_log_event * read_relay_log_description_event(IO_CACHE *cur_log, ulonglong start_pos, const char **errmsg); int init_relay_log_pos(Relay_log_info* rli,const char* log,ulonglong pos, bool need_data_lock, const char** errmsg, bool look_for_description_event); int purge_relay_logs(Relay_log_info* rli, THD *thd, bool just_reset, const char** errmsg); void set_slave_thread_options(THD* thd); void set_slave_thread_default_charset(THD *thd, rpl_group_info *rgi); int rotate_relay_log(Master_info* mi); int has_temporary_error(THD *thd); int sql_delay_event(Log_event *ev, THD *thd, rpl_group_info *rgi); int apply_event_and_update_pos(Log_event* ev, THD* thd, struct rpl_group_info *rgi); int apply_event_and_update_pos_for_parallel(Log_event* ev, THD* thd, struct rpl_group_info *rgi); int init_intvar_from_file(int* var, IO_CACHE* f, int default_val); int init_floatvar_from_file(float* var, IO_CACHE* f, float default_val); int init_strvar_from_file(char *var, int max_size, IO_CACHE *f, const char *default_val); int init_dynarray_intvar_from_file(DYNAMIC_ARRAY* arr, IO_CACHE* f); pthread_handler_t handle_slave_io(void *arg); void slave_output_error_info(rpl_group_info *rgi, THD *thd); pthread_handler_t handle_slave_sql(void *arg); bool net_request_file(NET* net, const char* fname); void slave_background_kill_request(THD *to_kill); extern bool volatile abort_loop; extern Master_info *active_mi; /* active_mi for multi-master */ extern Master_info *default_master_info; /* To replace active_mi */ extern Master_info_index *master_info_index; extern LEX_STRING default_master_connection_name; extern my_bool replicate_same_server_id; extern int disconnect_slave_event_count, abort_slave_event_count ; /* the master variables are defaults read from my.cnf or command line */ extern uint report_port; extern char *master_info_file, *report_user; extern char *report_host, *report_password; extern I_List<THD> threads; #else #define close_active_mi() /* no-op */ #endif /* HAVE_REPLICATION */ /* masks for start/stop operations on io and sql slave threads */ #define SLAVE_IO 1 #define SLAVE_SQL 2 /** @} (end of group Replication) */ #endif