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
02d0232e
Commit
02d0232e
authored
Jun 29, 2001
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work.mysql.com:/home/bk/mysql into white.box:/home/tim/my/3
BitKeeper/etc/logging_ok: auto-union
parents
a94cf896
c0e6d9df
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
238 additions
and
134 deletions
+238
-134
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
BitKeeper/triggers/post-commit
BitKeeper/triggers/post-commit
+6
-3
BitKeeper/triggers/post-incoming
BitKeeper/triggers/post-incoming
+3
-0
BitKeeper/triggers/post-outgoing
BitKeeper/triggers/post-outgoing
+3
-0
Docs/manual.ja.texi
Docs/manual.ja.texi
+2
-2
Docs/manual.texi
Docs/manual.texi
+5
-0
mysql-test/r/rpl_sporadic_master.result
mysql-test/r/rpl_sporadic_master.result
+7
-0
mysql-test/r/type_float.result
mysql-test/r/type_float.result
+2
-0
mysql-test/t/rpl_sporadic_master-master.opt
mysql-test/t/rpl_sporadic_master-master.opt
+1
-0
mysql-test/t/rpl_sporadic_master.test
mysql-test/t/rpl_sporadic_master.test
+24
-0
sql/mysqld.cc
sql/mysqld.cc
+18
-1
sql/share/spanish/errmsg.txt
sql/share/spanish/errmsg.txt
+120
-120
sql/slave.cc
sql/slave.cc
+8
-8
sql/sql_repl.cc
sql/sql_repl.cc
+33
-0
sql/sql_repl.h
sql/sql_repl.h
+5
-0
No files found.
BitKeeper/etc/logging_ok
View file @
02d0232e
heikki@donna.mysql.fi
jani@janikt.pp.saunalahti.fi
miguel@light.local
monty@hundin.mysql.fi
monty@tik.mysql.fi
monty@work.mysql.com
...
...
BitKeeper/triggers/post-commit
View file @
02d0232e
...
...
@@ -37,9 +37,12 @@ From: $FROM
To:
$INTERNALS
Subject: bk commit into 3.23 tree
Below is the list of changes that have just been pushed into main
3.23. repository. For information on how to access the repository
see http://www.mysql.com/doc/I/n/Installing_source_tree.html
Below is the list of changes that have just been commited into a local
3.23. repository of
$USER
. When
$USER
does a push, they will be
propogaged to the main repository and within 24 hours after the push into
the public repository. For information on how to access
the public repository see
http://www.mysql.com/doc/I/n/Installing_source_tree.html
EOF
bk changes
-v
-r
+
...
...
BitKeeper/triggers/post-incoming
0 → 100755
View file @
02d0232e
#! /bin/sh
echo
"Test: post-incoming works"
BitKeeper/triggers/post-outgoing
0 → 100755
View file @
02d0232e
#! /bin/sh
echo
"Test: post-outgoing works"
Docs/manual.ja.texi
View file @
02d0232e
...
...
@@ -33032,7 +33032,7 @@ Performance handicapping system for yachts. Uses PHP. By
@item @uref{http://www.mysql.com/Contrib/hylalog-1.0.tar.gz, hylalog-1.0.tar.gz}
Store @code{hylafax} outgoing faxes in a @strong{MySQL} database. By Sinisa
Milivojevic, @email{sinisa@@
coresinc
.com}.
Milivojevic, @email{sinisa@@
mysql
.com}.
@item @uref{http://www.mysql.com/Contrib/mrtg-mysql-1.0.tar.gz, mrtg-mysql-1.0.tar.gz}
@strong{MySQL} status plotting with MRTG, by Luuk de Boer, @email{luuk@@wxs.nl}.
...
...
@@ -33268,7 +33268,7 @@ The @file{libmysql.dll} library.
Mysqlmanager, a Win32 GUI tool for administrating @strong{MySQL}.
@item Curt Sampson @email{cjs@@portal.ca}
Porting of MIT-pthreads to NetBSD/Alpha and NetBSD 1.3/i386.
@item Sinisa Milivojevic @email{sinisa@@
coresinc
.com}
@item Sinisa Milivojevic @email{sinisa@@
mysql
.com}
Compression (with @code{zlib}) to the client/server protocol.
Perfect hashing for the lexical analyzer phase.
@item Antony T. Curtis @email{antony.curtis@@olcs.net}
Docs/manual.texi
View file @
02d0232e
...
...
@@ -3084,6 +3084,11 @@ If so, it may have a local mailing list, so that messages sent from
cases, please contact your system administrator to be added to or dropped
from the local @strong{MySQL} list.
If you wish to have traffic for a mailing list go to a separate mailbox in
your mail program, set up a filter based on the message headers. You can
use either the @code{List-ID:} or @code{Delivered-To:} headers to identify
list messages.
The following @strong{MySQL} mailing lists exist:
@table @code
mysql-test/r/rpl_sporadic_master.result
0 → 100644
View file @
02d0232e
n
1
2
3
4
5
6
mysql-test/r/type_float.result
View file @
02d0232e
...
...
@@ -2,6 +2,8 @@
10 10.0 10 10 10
6e-05 -6e-05 --6e-05 -6e-05+1.000000
6e-05 -6e-05 6e-05 0.99994
1e1 1.e1 1.0e1 1e+1 1.e+1 1.0e+1 1e-1 1.e-1 1.0e-1
10 10 10 10 10 10 0.1 0.1 0.1
Field Type Null Key Default Extra Privileges
f1 float YES NULL select,insert,update,references
f2 double YES NULL select,insert,update,references
...
...
mysql-test/t/rpl_sporadic_master-master.opt
0 → 100644
View file @
02d0232e
--sporadic-binlog-dump-fail --max-binlog-dump-events=2
mysql-test/t/rpl_sporadic_master.test
0 → 100644
View file @
02d0232e
#test to see if replication can continue when master sporadically fails on
# COM_BINLOG_DUMP and additionally limits the number of events per dump
source
include
/
master
-
slave
.
inc
;
connection
master
;
drop
table
if
exists
t1
;
create
table
t1
(
n
int
not
null
auto_increment
primary
key
);
insert
into
t1
values
(
NULL
),(
NULL
);
delete
from
t1
;
insert
into
t1
values
(
NULL
),(
NULL
);
insert
into
t1
values
(
NULL
),(
NULL
);
flush
logs
;
delete
from
t1
;
insert
into
t1
values
(
NULL
),(
NULL
);
insert
into
t1
values
(
NULL
),(
NULL
);
insert
into
t1
values
(
NULL
),(
NULL
);
save_master_pos
;
connection
slave
;
sync_with_master
;
select
*
from
t1
;
connection
master
;
drop
table
t1
;
save_master_pos
;
connection
slave
;
sync_with_master
;
sql/mysqld.cc
View file @
02d0232e
...
...
@@ -20,6 +20,7 @@
#include <my_dir.h>
#include "sql_acl.h"
#include "slave.h"
#include "sql_repl.h"
#include "stacktrace.h"
#ifdef HAVE_BERKELEY_DB
#include "ha_berkeley.h"
...
...
@@ -2461,7 +2462,8 @@ enum options {
OPT_TEMP_POOL
,
OPT_TX_ISOLATION
,
OPT_GEMINI_FLUSH_LOG
,
OPT_GEMINI_RECOVER
,
OPT_GEMINI_UNBUFFERED_IO
,
OPT_SKIP_SAFEMALLOC
,
OPT_SKIP_STACK_TRACE
,
OPT_SKIP_SYMLINKS
OPT_SKIP_STACK_TRACE
,
OPT_SKIP_SYMLINKS
,
OPT_MAX_BINLOG_DUMP_EVENTS
,
OPT_SPORADIC_BINLOG_DUMP_FAIL
};
static
struct
option
long_options
[]
=
{
...
...
@@ -2545,6 +2547,10 @@ static struct option long_options[] = {
(
int
)
OPT_DISCONNECT_SLAVE_EVENT_COUNT
},
{
"abort-slave-event-count"
,
required_argument
,
0
,
(
int
)
OPT_ABORT_SLAVE_EVENT_COUNT
},
{
"max-binlog-dump-events"
,
required_argument
,
0
,
(
int
)
OPT_MAX_BINLOG_DUMP_EVENTS
},
{
"sporadic-binlog-dump-fail"
,
no_argument
,
0
,
(
int
)
OPT_SPORADIC_BINLOG_DUMP_FAIL
},
{
"safemalloc-mem-limit"
,
required_argument
,
0
,
(
int
)
OPT_SAFEMALLOC_MEM_LIMIT
},
{
"new"
,
no_argument
,
0
,
'n'
},
...
...
@@ -3301,6 +3307,17 @@ static void get_options(int argc,char **argv)
abort_slave_event_count
=
atoi
(
optarg
);
#endif
break
;
case
(
int
)
OPT_SPORADIC_BINLOG_DUMP_FAIL
:
#ifndef DBUG_OFF
opt_sporadic_binlog_dump_fail
=
1
;
#endif
break
;
case
(
int
)
OPT_MAX_BINLOG_DUMP_EVENTS
:
#ifndef DBUG_OFF
max_binlog_dump_events
=
atoi
(
optarg
);
#endif
break
;
case
(
int
)
OPT_LOG_SLAVE_UPDATES
:
opt_log_slave_updates
=
1
;
break
;
...
...
sql/share/spanish/errmsg.txt
View file @
02d0232e
This diff is collapsed.
Click to expand it.
sql/slave.cc
View file @
02d0232e
...
...
@@ -1236,6 +1236,8 @@ pthread_handler_decl(handle_slave,arg __attribute__((unused)))
goto
err
;
}
connected:
while
(
!
slave_killed
(
thd
))
{
thd
->
proc_info
=
"Requesting binlog dump"
;
...
...
@@ -1278,10 +1280,9 @@ try again, log '%s' at postion %s", RPL_LOG_NAME,
goto
err
;
}
continue
;
goto
connected
;
}
while
(
!
slave_killed
(
thd
))
{
thd
->
proc_info
=
"Reading master update"
;
...
...
@@ -1292,7 +1293,6 @@ try again, log '%s' at postion %s", RPL_LOG_NAME,
goto
err
;
}
if
(
event_len
==
packet_error
)
{
if
(
mc_mysql_errno
(
mysql
)
==
ER_NET_PACKET_TOO_LARGE
)
...
...
@@ -1329,8 +1329,9 @@ reconnecting to retry, log '%s' position %s", RPL_LOG_NAME,
reconnect done to recover from failed read"
);
goto
err
;
}
break
;
}
goto
connected
;
}
// if(event_len == packet_error)
thd
->
proc_info
=
"Processing master log event"
;
if
(
exec_event
(
thd
,
&
mysql
->
net
,
&
glob_mi
,
event_len
))
...
...
@@ -1373,9 +1374,8 @@ the slave thread with \"mysqladmin start-slave\". We stopped at log \
events_till_disconnect
++
;
}
#endif
}
}
}
// while(!slave_killed(thd)) - read/exec loop
}
// while(!slave_killed(thd)) - slave loop
// error = 0;
err:
...
...
sql/sql_repl.cc
View file @
02d0232e
...
...
@@ -27,6 +27,11 @@
extern
const
char
*
any_db
;
extern
pthread_handler_decl
(
handle_slave
,
arg
);
#ifndef DBUG_OFF
int
max_binlog_dump_events
=
0
;
// unlimited
bool
opt_sporadic_binlog_dump_fail
=
0
;
static
int
binlog_dump_count
=
0
;
#endif
static
int
fake_rotate_event
(
NET
*
net
,
String
*
packet
,
char
*
log_file_name
,
const
char
**
errmsg
)
...
...
@@ -265,8 +270,19 @@ void mysql_binlog_send(THD* thd, char* log_ident, ulong pos, ushort flags)
int
error
;
const
char
*
errmsg
=
"Unknown error"
;
NET
*
net
=
&
thd
->
net
;
#ifndef DBUG_OFF
int
left_events
=
max_binlog_dump_events
;
#endif
DBUG_ENTER
(
"mysql_binlog_send"
);
#ifndef DBUG_OFF
if
(
opt_sporadic_binlog_dump_fail
&&
(
binlog_dump_count
++
%
2
))
{
errmsg
=
"Master failed COM_BINLOG_DUMP to test if slave can recover"
;
goto
err
;
}
#endif
bzero
((
char
*
)
&
log
,
sizeof
(
log
));
if
(
!
mysql_bin_log
.
is_open
())
...
...
@@ -325,6 +341,14 @@ void mysql_binlog_send(THD* thd, char* log_ident, ulong pos, ushort flags)
while
(
!
(
error
=
Log_event
::
read_log_event
(
&
log
,
packet
,
log_lock
)))
{
#ifndef DBUG_OFF
if
(
max_binlog_dump_events
&&
!
left_events
--
)
{
net_flush
(
net
);
errmsg
=
"Debugging binlog dump abort"
;
goto
err
;
}
#endif
if
(
my_net_write
(
net
,
(
char
*
)
packet
->
ptr
(),
packet
->
length
())
)
{
errmsg
=
"Failed on my_net_write()"
;
...
...
@@ -399,6 +423,15 @@ void mysql_binlog_send(THD* thd, char* log_ident, ulong pos, ushort flags)
bool
read_packet
=
0
,
fatal_error
=
0
;
#ifndef DBUG_OFF
if
(
max_binlog_dump_events
&&
!
left_events
--
)
{
net_flush
(
net
);
errmsg
=
"Debugging binlog dump abort"
;
goto
err
;
}
#endif
// no one will update the log while we are reading
// now, but we'll be quick and just read one record
pthread_mutex_lock
(
log_lock
);
...
...
sql/sql_repl.h
View file @
02d0232e
...
...
@@ -9,6 +9,11 @@ extern uint32 server_id;
extern
bool
server_id_supplied
;
extern
I_List
<
i_string
>
binlog_do_db
,
binlog_ignore_db
;
#ifndef DBUG_OFF
extern
int
max_binlog_dump_events
;
extern
bool
opt_sporadic_binlog_dump_fail
;
#endif
File
open_binlog
(
IO_CACHE
*
log
,
const
char
*
log_file_name
,
const
char
**
errmsg
);
...
...
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