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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e9c6be0e
Commit
e9c6be0e
authored
May 19, 2004
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.0
parents
e13e9288
319f83ef
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
sql/mysql_priv.h
sql/mysql_priv.h
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+5
-5
sql/set_var.cc
sql/set_var.cc
+6
-1
sql/slave.cc
sql/slave.cc
+2
-4
No files found.
sql/mysql_priv.h
View file @
e9c6be0e
...
@@ -703,7 +703,7 @@ extern uint protocol_version,dropping_tables;
...
@@ -703,7 +703,7 @@ extern uint protocol_version,dropping_tables;
extern
uint
delay_key_write_options
,
lower_case_table_names
;
extern
uint
delay_key_write_options
,
lower_case_table_names
;
extern
bool
opt_endinfo
,
using_udf_functions
,
locked_in_memory
;
extern
bool
opt_endinfo
,
using_udf_functions
,
locked_in_memory
;
extern
bool
opt_using_transactions
,
mysql_embedded
;
extern
bool
opt_using_transactions
,
mysql_embedded
;
extern
bool
using_update_log
,
opt_large_files
;
extern
bool
using_update_log
,
opt_large_files
,
server_id_supplied
;
extern
bool
opt_log
,
opt_update_log
,
opt_bin_log
,
opt_slow_log
,
opt_error_log
;
extern
bool
opt_log
,
opt_update_log
,
opt_bin_log
,
opt_slow_log
,
opt_error_log
;
extern
bool
opt_disable_networking
,
opt_skip_show_db
;
extern
bool
opt_disable_networking
,
opt_skip_show_db
;
extern
bool
volatile
abort_loop
,
shutdown_in_progress
,
grant_option
;
extern
bool
volatile
abort_loop
,
shutdown_in_progress
,
grant_option
;
...
...
sql/mysqld.cc
View file @
e9c6be0e
...
@@ -2354,15 +2354,15 @@ You should consider changing lower_case_table_names to 1 or 2",
...
@@ -2354,15 +2354,15 @@ You should consider changing lower_case_table_names to 1 or 2",
#ifdef EXTRA_DEBUG
#ifdef EXTRA_DEBUG
case
1
:
case
1
:
sql_print_error
(
"\
sql_print_error
(
"\
Warning: You have enabled the binary log, but you haven't set server-id
:
\n
\
Warning: You have enabled the binary log, but you haven't set server-id
to
\
Updates will be logged to the binary log, but connections to slaves will
\n
\
a non-zero value: we force server id to 1; updates will be logged to the
\
not be accepted."
);
binary log, but connections from slaves will
not be accepted."
);
break
;
break
;
#endif
#endif
case
2
:
case
2
:
sql_print_error
(
"\
sql_print_error
(
"\
Warning: You should set server-id to a non-0 value if master_host is set
.
\n
\
Warning: You should set server-id to a non-0 value if master_host is set
;
\
The
server will not act as a slave."
);
we force server id to 2, but this MySQL
server will not act as a slave."
);
break
;
break
;
}
}
}
}
...
...
sql/set_var.cc
View file @
e9c6be0e
...
@@ -90,6 +90,7 @@ static void fix_max_relay_log_size(THD *thd, enum_var_type type);
...
@@ -90,6 +90,7 @@ static void fix_max_relay_log_size(THD *thd, enum_var_type type);
static
void
fix_max_connections
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_max_connections
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_thd_mem_root
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_thd_mem_root
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_trans_mem_root
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_trans_mem_root
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_server_id
(
THD
*
thd
,
enum_var_type
type
);
/*
/*
Variable definition list
Variable definition list
...
@@ -235,7 +236,7 @@ sys_var_thd_bool
...
@@ -235,7 +236,7 @@ sys_var_thd_bool
sys_query_cache_wlock_invalidate
(
"query_cache_wlock_invalidate"
,
sys_query_cache_wlock_invalidate
(
"query_cache_wlock_invalidate"
,
&
SV
::
query_cache_wlock_invalidate
);
&
SV
::
query_cache_wlock_invalidate
);
#endif
/* HAVE_QUERY_CACHE */
#endif
/* HAVE_QUERY_CACHE */
sys_var_long_ptr
sys_server_id
(
"server_id"
,
&
server_id
);
sys_var_long_ptr
sys_server_id
(
"server_id"
,
&
server_id
,
fix_
server_id
);
sys_var_bool_ptr
sys_slave_compressed_protocol
(
"slave_compressed_protocol"
,
sys_var_bool_ptr
sys_slave_compressed_protocol
(
"slave_compressed_protocol"
,
&
opt_slave_compressed_protocol
);
&
opt_slave_compressed_protocol
);
sys_var_long_ptr
sys_slave_net_timeout
(
"slave_net_timeout"
,
sys_var_long_ptr
sys_slave_net_timeout
(
"slave_net_timeout"
,
...
@@ -811,6 +812,10 @@ static void fix_trans_mem_root(THD *thd, enum_var_type type)
...
@@ -811,6 +812,10 @@ static void fix_trans_mem_root(THD *thd, enum_var_type type)
thd
->
variables
.
trans_prealloc_size
);
thd
->
variables
.
trans_prealloc_size
);
}
}
static
void
fix_server_id
(
THD
*
thd
,
enum_var_type
type
)
{
server_id_supplied
=
1
;
}
bool
sys_var_long_ptr
::
update
(
THD
*
thd
,
set_var
*
var
)
bool
sys_var_long_ptr
::
update
(
THD
*
thd
,
set_var
*
var
)
{
{
...
...
sql/slave.cc
View file @
e9c6be0e
...
@@ -143,13 +143,11 @@ int init_slave()
...
@@ -143,13 +143,11 @@ int init_slave()
goto
err
;
goto
err
;
}
}
/*
make sure slave thread gets started if server_id is set,
valid master.info is present, and master_host has not been specified
*/
if
(
server_id
&&
!
master_host
&&
active_mi
->
host
[
0
])
if
(
server_id
&&
!
master_host
&&
active_mi
->
host
[
0
])
master_host
=
active_mi
->
host
;
master_host
=
active_mi
->
host
;
/* If server id is not set, start_slave_thread() will say it */
if
(
master_host
&&
!
opt_skip_slave_start
)
if
(
master_host
&&
!
opt_skip_slave_start
)
{
{
if
(
start_slave_threads
(
1
/* need mutex */
,
if
(
start_slave_threads
(
1
/* need mutex */
,
...
...
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