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
9034ed29
Commit
9034ed29
authored
Mar 05, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A better, but larger fix for server_id bug ..
parent
4d83bdef
Changes
5
Hide 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 @
9034ed29
...
...
@@ -33,7 +33,7 @@ extern "C"
#endif
char
server_version
[
SERVER_VERSION_LENGTH
];
u
int32
server_id
=
0
;
u
long
server_id
=
0
;
// needed by net_serv.c
ulong
bytes_sent
=
0L
,
bytes_received
=
0L
;
...
...
sql/log_event.h
View file @
9034ed29
...
...
@@ -59,7 +59,7 @@ enum Int_event_type { INVALID_INT_EVENT = 0, LAST_INSERT_ID_EVENT = 1, INSERT_ID
class
String
;
#endif
extern
u
int32
server_id
;
extern
u
long
server_id
;
class
Log_event
{
...
...
sql/mysql_priv.h
View file @
9034ed29
...
...
@@ -506,7 +506,7 @@ void sql_perror(const char *message);
void
sql_print_error
(
const
char
*
format
,...)
__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
],
max_sort_char
,
mysql_real_data_home
[];
extern
my_string
mysql_unix_port
,
mysql_tmpdir
;
...
...
sql/mysqld.cc
View file @
9034ed29
...
...
@@ -273,7 +273,7 @@ I_List<i_string> replicate_do_db, replicate_ignore_db;
I_List
<
i_string
>
binlog_do_db
,
binlog_ignore_db
;
/* 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
;
uint
mysql_port
;
...
...
@@ -3162,7 +3162,7 @@ struct show_var_st init_vars[]= {
{
"record_rnd_buffer"
,
(
char
*
)
&
record_rnd_cache_size
,
SHOW_LONG
},
{
"query_buffer_size"
,
(
char
*
)
&
query_buff_size
,
SHOW_LONG
},
{
"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
},
{
"skip_locking"
,
(
char
*
)
&
my_disable_locking
,
SHOW_MY_BOOL
},
{
"skip_networking"
,
(
char
*
)
&
opt_disable_networking
,
SHOW_BOOL
},
...
...
@@ -3966,7 +3966,7 @@ static void get_options(int argc,char **argv)
break
;
}
case
OPT_SERVER_ID
:
server_id
=
ato
i
(
optarg
);
server_id
=
ato
l
(
optarg
);
server_id_supplied
=
1
;
break
;
case
OPT_DELAY_KEY_WRITE
:
...
...
sql/sql_repl.h
View file @
9034ed29
...
...
@@ -5,7 +5,7 @@
extern
char
*
master_host
;
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
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