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
45adda8f
Commit
45adda8f
authored
Dec 05, 2005
by
hartmut@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added --server-id option to mysqlbinlog to filter for a certain server id
in the binlog only
parent
36c45752
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
client/client_priv.h
client/client_priv.h
+1
-1
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+8
-0
No files found.
client/client_priv.h
View file @
45adda8f
...
...
@@ -52,5 +52,5 @@ enum options_client
OPT_TRIGGERS
,
OPT_IGNORE_TABLE
,
OPT_INSERT_IGNORE
,
OPT_SHOW_WARNINGS
,
OPT_DROP_DATABASE
,
OPT_TZ_UTC
,
OPT_AUTO_CLOSE
,
OPT_MYSQL_REPLACE_INTO
OPT_MYSQL_REPLACE_INTO
,
OPT_SERVER_ID
};
client/mysqlbinlog.cc
View file @
45adda8f
...
...
@@ -516,6 +516,9 @@ int process_event(PRINT_EVENT_INFO *print_event_info, Log_event *ev,
start_datetime
=
0
;
offset
=
0
;
// print everything and protect against cycling rec_count
}
if
(
server_id
&&
(
server_id
!=
ev
->
server_id
))
{
DBUG_RETURN
(
0
);
}
if
(((
my_time_t
)(
ev
->
when
)
>=
stop_datetime
)
||
(
pos
>=
stop_position_mot
))
{
...
...
@@ -742,6 +745,11 @@ static struct my_option my_long_options[] =
(
gptr
*
)
&
stop_position
,
(
gptr
*
)
&
stop_position
,
0
,
GET_ULL
,
REQUIRED_ARG
,
(
ulonglong
)(
~
(
my_off_t
)
0
),
BIN_LOG_HEADER_SIZE
,
(
ulonglong
)(
~
(
my_off_t
)
0
),
0
,
0
,
0
},
{
"server-id"
,
OPT_SERVER_ID
,
"Only extract binlog entries created by a certain server id "
"passed on the command line."
,
(
gptr
*
)
&
server_id
,
(
gptr
*
)
&
server_id
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"to-last-log"
,
't'
,
"Requires -R. Will not stop at the end of the \
requested binlog but rather continue printing until the end of the last \
binlog of the MySQL server. If you send the output to the same MySQL server, \
...
...
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