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
a300406b
Commit
a300406b
authored
Mar 05, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A better, but larger fix for server_id bug ..
parent
5247c5bf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+1
-1
sql/log_event.h
sql/log_event.h
+1
-1
sql/mysql_priv.h
sql/mysql_priv.h
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+3
-3
sql/sql_repl.h
sql/sql_repl.h
+1
-1
No files found.
client/mysqlbinlog.cc
View file @
a300406b
...
@@ -33,7 +33,7 @@ extern "C"
...
@@ -33,7 +33,7 @@ extern "C"
#endif
#endif
char
server_version
[
SERVER_VERSION_LENGTH
];
char
server_version
[
SERVER_VERSION_LENGTH
];
u
int32
server_id
=
0
;
u
long
server_id
=
0
;
// needed by net_serv.c
// needed by net_serv.c
ulong
bytes_sent
=
0L
,
bytes_received
=
0L
;
ulong
bytes_sent
=
0L
,
bytes_received
=
0L
;
...
...
sql/log_event.h
View file @
a300406b
...
@@ -59,7 +59,7 @@ enum Int_event_type { INVALID_INT_EVENT = 0, LAST_INSERT_ID_EVENT = 1, INSERT_ID
...
@@ -59,7 +59,7 @@ enum Int_event_type { INVALID_INT_EVENT = 0, LAST_INSERT_ID_EVENT = 1, INSERT_ID
class
String
;
class
String
;
#endif
#endif
extern
u
int32
server_id
;
extern
u
long
server_id
;
class
Log_event
class
Log_event
{
{
...
...
sql/mysql_priv.h
View file @
a300406b
...
@@ -506,7 +506,7 @@ void sql_perror(const char *message);
...
@@ -506,7 +506,7 @@ void sql_perror(const char *message);
void
sql_print_error
(
const
char
*
format
,...)
void
sql_print_error
(
const
char
*
format
,...)
__attribute__
((
format
(
printf
,
1
,
2
)));
__attribute__
((
format
(
printf
,
1
,
2
)));
extern
u
int32
server_id
;
extern
u
long
server_id
;
extern
char
mysql_data_home
[
2
],
server_version
[
SERVER_VERSION_LENGTH
],
extern
char
mysql_data_home
[
2
],
server_version
[
SERVER_VERSION_LENGTH
],
max_sort_char
,
mysql_real_data_home
[];
max_sort_char
,
mysql_real_data_home
[];
extern
my_string
mysql_unix_port
,
mysql_tmpdir
;
extern
my_string
mysql_unix_port
,
mysql_tmpdir
;
...
...
sql/mysqld.cc
View file @
a300406b
...
@@ -273,7 +273,7 @@ I_List<i_string> replicate_do_db, replicate_ignore_db;
...
@@ -273,7 +273,7 @@ I_List<i_string> replicate_do_db, replicate_ignore_db;
I_List
<
i_string
>
binlog_do_db
,
binlog_ignore_db
;
I_List
<
i_string
>
binlog_do_db
,
binlog_ignore_db
;
/* if we guessed server_id , we need to know about it */
/* if we guessed server_id , we need to know about it */
u
int32
server_id
=
0
;
u
long
server_id
=
0
;
bool
server_id_supplied
=
0
;
bool
server_id_supplied
=
0
;
uint
mysql_port
;
uint
mysql_port
;
...
@@ -3162,7 +3162,7 @@ struct show_var_st init_vars[]= {
...
@@ -3162,7 +3162,7 @@ struct show_var_st init_vars[]= {
{
"record_rnd_buffer"
,
(
char
*
)
&
record_rnd_cache_size
,
SHOW_LONG
},
{
"record_rnd_buffer"
,
(
char
*
)
&
record_rnd_cache_size
,
SHOW_LONG
},
{
"query_buffer_size"
,
(
char
*
)
&
query_buff_size
,
SHOW_LONG
},
{
"query_buffer_size"
,
(
char
*
)
&
query_buff_size
,
SHOW_LONG
},
{
"safe_show_database"
,
(
char
*
)
&
opt_safe_show_db
,
SHOW_BOOL
},
{
"safe_show_database"
,
(
char
*
)
&
opt_safe_show_db
,
SHOW_BOOL
},
{
"server_id"
,
(
char
*
)
&
server_id
,
SHOW_
INT
},
{
"server_id"
,
(
char
*
)
&
server_id
,
SHOW_
LONG
},
{
"slave_net_timeout"
,
(
char
*
)
&
slave_net_timeout
,
SHOW_LONG
},
{
"slave_net_timeout"
,
(
char
*
)
&
slave_net_timeout
,
SHOW_LONG
},
{
"skip_locking"
,
(
char
*
)
&
my_disable_locking
,
SHOW_MY_BOOL
},
{
"skip_locking"
,
(
char
*
)
&
my_disable_locking
,
SHOW_MY_BOOL
},
{
"skip_networking"
,
(
char
*
)
&
opt_disable_networking
,
SHOW_BOOL
},
{
"skip_networking"
,
(
char
*
)
&
opt_disable_networking
,
SHOW_BOOL
},
...
@@ -3966,7 +3966,7 @@ static void get_options(int argc,char **argv)
...
@@ -3966,7 +3966,7 @@ static void get_options(int argc,char **argv)
break
;
break
;
}
}
case
OPT_SERVER_ID
:
case
OPT_SERVER_ID
:
server_id
=
ato
i
(
optarg
);
server_id
=
ato
l
(
optarg
);
server_id_supplied
=
1
;
server_id_supplied
=
1
;
break
;
break
;
case
OPT_DELAY_KEY_WRITE
:
case
OPT_DELAY_KEY_WRITE
:
...
...
sql/sql_repl.h
View file @
a300406b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
extern
char
*
master_host
;
extern
char
*
master_host
;
extern
my_string
opt_bin_logname
,
master_info_file
;
extern
my_string
opt_bin_logname
,
master_info_file
;
extern
u
int32
server_id
;
extern
u
long
server_id
;
extern
bool
server_id_supplied
;
extern
bool
server_id_supplied
;
extern
I_List
<
i_string
>
binlog_do_db
,
binlog_ignore_db
;
extern
I_List
<
i_string
>
binlog_do_db
,
binlog_ignore_db
;
...
...
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