Below is the list of changes that have just been committed into a local
5.1 repository of hartmut. When hartmut does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2002 05/12/05 11:21:30 hartmut@stripped +2 -0
added --server-id option to mysqlbinlog to filter for a certain server id
in the binlog only
client/mysqlbinlog.cc
1.123 05/12/05 11:21:19 hartmut@stripped +8 -0
output can be filtered for a certain server-id now
client/client_priv.h
1.45 05/12/05 11:21:19 hartmut@stripped +1 -1
added OPT_SERVER_ID for --server-id option ot mysqlbinlog
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: hartmut
# Host: linux.site
# Root: /home/hartmut/projects/mysql/dev/5.1
--- 1.122/client/mysqlbinlog.cc 2005-11-28 19:52:47 +01:00
+++ 1.123/client/mysqlbinlog.cc 2005-12-05 11:21:19 +01:00
@@ -516,6 +516,9 @@
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 @@
(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, \
--- 1.44/client/client_priv.h 2005-11-24 18:56:35 +01:00
+++ 1.45/client/client_priv.h 2005-12-05 11:21:19 +01:00
@@ -52,5 +52,5 @@
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
};
| Thread |
|---|
| • bk commit into 5.1 tree (hartmut:1.2002) | 'Hartmut Holzgraefe' | 5 Dec |