Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f142f5bf
Commit
f142f5bf
authored
Jun 02, 2010
by
Magnus Blåudd
Browse files
Options
Browse Files
Download
Plain Diff
Merge trunk-bug53983 -> trunk-bugfixing
parents
02fc237a
3b1cc6e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
sql/rpl_mi.cc
sql/rpl_mi.cc
+13
-3
No files found.
sql/rpl_mi.cc
View file @
f142f5bf
...
@@ -131,8 +131,10 @@ enum {
...
@@ -131,8 +131,10 @@ enum {
LINE_FOR_MASTER_SSL_VERIFY_SERVER_CERT
=
15
,
LINE_FOR_MASTER_SSL_VERIFY_SERVER_CERT
=
15
,
/* 6.0 added value of master_heartbeat_period */
/* 6.0 added value of master_heartbeat_period */
LINE_FOR_MASTER_HEARTBEAT_PERIOD
=
16
,
LINE_FOR_MASTER_HEARTBEAT_PERIOD
=
16
,
/* MySQL Cluster 6.3 added master_bind */
LINE_FOR_MASTER_BIND
=
17
,
/* 6.0 added value of master_ignore_server_id */
/* 6.0 added value of master_ignore_server_id */
LINE_FOR_REPLICATE_IGNORE_SERVER_IDS
=
1
7
,
LINE_FOR_REPLICATE_IGNORE_SERVER_IDS
=
1
8
,
/* Number of lines currently used when saving master info file */
/* Number of lines currently used when saving master info file */
LINES_IN_MASTER_INFO
=
LINE_FOR_REPLICATE_IGNORE_SERVER_IDS
LINES_IN_MASTER_INFO
=
LINE_FOR_REPLICATE_IGNORE_SERVER_IDS
};
};
...
@@ -240,6 +242,7 @@ file '%s')", fname);
...
@@ -240,6 +242,7 @@ file '%s')", fname);
int
ssl
=
0
,
ssl_verify_server_cert
=
0
;
int
ssl
=
0
,
ssl_verify_server_cert
=
0
;
float
master_heartbeat_period
=
0.0
;
float
master_heartbeat_period
=
0.0
;
char
*
first_non_digit
;
char
*
first_non_digit
;
char
dummy_buf
[
HOSTNAME_LENGTH
+
1
];
/*
/*
Starting from 4.1.x master.info has new format. Now its
Starting from 4.1.x master.info has new format. Now its
...
@@ -328,6 +331,13 @@ file '%s')", fname);
...
@@ -328,6 +331,13 @@ file '%s')", fname);
if
(
lines
>=
LINE_FOR_MASTER_HEARTBEAT_PERIOD
&&
if
(
lines
>=
LINE_FOR_MASTER_HEARTBEAT_PERIOD
&&
init_floatvar_from_file
(
&
master_heartbeat_period
,
&
mi
->
file
,
0.0
))
init_floatvar_from_file
(
&
master_heartbeat_period
,
&
mi
->
file
,
0.0
))
goto
errwithmsg
;
goto
errwithmsg
;
/*
Starting from MySQL Cluster 6.3 master_bind might be in the file
(this is just a reservation to avoid future upgrade problems)
*/
if
(
lines
>=
LINE_FOR_MASTER_BIND
&&
init_strvar_from_file
(
dummy_buf
,
sizeof
(
dummy_buf
),
&
mi
->
file
,
""
))
goto
errwithmsg
;
/*
/*
Starting from 6.0 list of server_id of ignorable servers might be
Starting from 6.0 list of server_id of ignorable servers might be
in the file
in the file
...
@@ -480,14 +490,14 @@ int flush_master_info(Master_info* mi,
...
@@ -480,14 +490,14 @@ int flush_master_info(Master_info* mi,
my_sprintf
(
heartbeat_buf
,
(
heartbeat_buf
,
"%.3f"
,
mi
->
heartbeat_period
));
my_sprintf
(
heartbeat_buf
,
(
heartbeat_buf
,
"%.3f"
,
mi
->
heartbeat_period
));
my_b_seek
(
file
,
0L
);
my_b_seek
(
file
,
0L
);
my_b_printf
(
file
,
my_b_printf
(
file
,
"%u
\n
%s
\n
%s
\n
%s
\n
%s
\n
%s
\n
%d
\n
%d
\n
%d
\n
%s
\n
%s
\n
%s
\n
%s
\n
%s
\n
%d
\n
%s
\n
%s
\n
"
,
"%u
\n
%s
\n
%s
\n
%s
\n
%s
\n
%s
\n
%d
\n
%d
\n
%d
\n
%s
\n
%s
\n
%s
\n
%s
\n
%s
\n
%d
\n
%s
\n
%s
\n
%s
\n
"
,
LINES_IN_MASTER_INFO
,
LINES_IN_MASTER_INFO
,
mi
->
master_log_name
,
llstr
(
mi
->
master_log_pos
,
lbuf
),
mi
->
master_log_name
,
llstr
(
mi
->
master_log_pos
,
lbuf
),
mi
->
host
,
mi
->
user
,
mi
->
host
,
mi
->
user
,
mi
->
password
,
mi
->
port
,
mi
->
connect_retry
,
mi
->
password
,
mi
->
port
,
mi
->
connect_retry
,
(
int
)(
mi
->
ssl
),
mi
->
ssl_ca
,
mi
->
ssl_capath
,
mi
->
ssl_cert
,
(
int
)(
mi
->
ssl
),
mi
->
ssl_ca
,
mi
->
ssl_capath
,
mi
->
ssl_cert
,
mi
->
ssl_cipher
,
mi
->
ssl_key
,
mi
->
ssl_verify_server_cert
,
mi
->
ssl_cipher
,
mi
->
ssl_key
,
mi
->
ssl_verify_server_cert
,
heartbeat_buf
,
ignore_server_ids_buf
);
heartbeat_buf
,
""
,
ignore_server_ids_buf
);
my_free
(
ignore_server_ids_buf
,
MYF
(
0
));
my_free
(
ignore_server_ids_buf
,
MYF
(
0
));
err
=
flush_io_cache
(
file
);
err
=
flush_io_cache
(
file
);
if
(
sync_masterinfo_period
&&
!
err
&&
if
(
sync_masterinfo_period
&&
!
err
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment