mirror of
https://github.com/MariaDB/server.git
synced 2025-07-02 14:22:51 +03:00
Merge mysql.sashanet.com:/home/sasha/src/bk/mysql
into mysql.sashanet.com:/home/sasha/src/bk/mysql-4.0 BitKeeper/triggers/post-commit: Auto merged mysql-test/mysql-test-run.sh: Auto merged
This commit is contained in:
@ -28293,6 +28293,10 @@ If you connect using TCP/IP rather than Unix sockets, the result is 7.5%
|
|||||||
slower on the same computer. (If you are connection to @code{localhost},
|
slower on the same computer. (If you are connection to @code{localhost},
|
||||||
@strong{MySQL} will, by default, use sockets).
|
@strong{MySQL} will, by default, use sockets).
|
||||||
|
|
||||||
|
@item
|
||||||
|
If you connect using TCP/IP from another computer over a 100M Ethernet,
|
||||||
|
things will be 8-11 % slower.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
If you compile with @code{--with-debug=full}, then you will loose 20 %
|
If you compile with @code{--with-debug=full}, then you will loose 20 %
|
||||||
for most queries, but some queries may take substantially longer (The
|
for most queries, but some queries may take substantially longer (The
|
||||||
|
@ -20,9 +20,31 @@ TZ=GMT-3; export TZ # for UNIX_TIMESTAMP tests to work
|
|||||||
|
|
||||||
PATH=/bin:/usr/bin:/usr/local/bin:/usr/bsd:/usr/X11R6/bin
|
PATH=/bin:/usr/bin:/usr/local/bin:/usr/bsd:/usr/X11R6/bin
|
||||||
|
|
||||||
|
# Standard functions
|
||||||
|
|
||||||
|
which ()
|
||||||
|
{
|
||||||
|
DIRS=`echo $PATH | tr ":" " "`
|
||||||
|
for file
|
||||||
|
do
|
||||||
|
for dir in $DIRS
|
||||||
|
do
|
||||||
|
if test -f $dir/$file
|
||||||
|
then
|
||||||
|
echo "$dir/$file"
|
||||||
|
continue 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "which: no $file in ($PATH)"
|
||||||
|
exit 1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# No paths below as we can't be sure where the program is!
|
# No paths below as we can't be sure where the program is!
|
||||||
|
|
||||||
BASENAME=`which basename | head -1`
|
BASENAME=`which basename | head -1`
|
||||||
|
DIFF=`which diff | head -1`
|
||||||
CAT=cat
|
CAT=cat
|
||||||
CUT=cut
|
CUT=cut
|
||||||
TAIL=tail
|
TAIL=tail
|
||||||
@ -268,6 +290,20 @@ prompt_user ()
|
|||||||
read unused
|
read unused
|
||||||
}
|
}
|
||||||
|
|
||||||
|
show_failed_diff ()
|
||||||
|
{
|
||||||
|
reject_file=r/$1.reject
|
||||||
|
result_file=r/$1.result
|
||||||
|
if [ -x "$DIFF" ] && [ -f $reject_file ]
|
||||||
|
then
|
||||||
|
echo "Below are the diffs between actual and expected results:"
|
||||||
|
echo "-------------------------------------------------------"
|
||||||
|
$DIFF -u $result_file $reject_file
|
||||||
|
echo "-------------------------------------------------------"
|
||||||
|
echo "Please e-mail the above, along with the output of mysqlbug"
|
||||||
|
echo "and any other relevant info to bugs@lists.mysql.com"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
error () {
|
error () {
|
||||||
$ECHO "Error: $1"
|
$ECHO "Error: $1"
|
||||||
@ -660,6 +696,7 @@ run_testcase ()
|
|||||||
$ECHO "$RES$RES_SPACE [ fail ]"
|
$ECHO "$RES$RES_SPACE [ fail ]"
|
||||||
$ECHO
|
$ECHO
|
||||||
error_is
|
error_is
|
||||||
|
show_failed_diff $tname
|
||||||
$ECHO
|
$ECHO
|
||||||
if [ x$FORCE != x1 ] ; then
|
if [ x$FORCE != x1 ] ; then
|
||||||
$ECHO "Aborting. To continue, re-run with '--force'."
|
$ECHO "Aborting. To continue, re-run with '--force'."
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
count(distinct n)
|
count(distinct n)
|
||||||
10000
|
100
|
||||||
|
@ -6,8 +6,8 @@ sum(length(word))
|
|||||||
(@id := id) - id
|
(@id := id) - id
|
||||||
0
|
0
|
||||||
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter
|
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter
|
||||||
127.0.0.1 root 9306 1 master-bin.001 1729137 No 1053 Slave: query ' update t1 set n = n + 1' partially completed on the master and was aborted. There is a chance that your master is inconsistent at this point. If you are sure that your master is ok, run this query manually on the slave and then restart the slave with SET SQL_SLAVE_SKIP_COUNTER=1; SLAVE START; 0
|
127.0.0.1 root 9306 1 master-bin.001 939 No 1053 Slave: query ' update t1 set n = n + get_lock('crash_lock', 2)' partially completed on the master and was aborted. There is a chance that your master is inconsistent at this point. If you are sure that your master is ok, run this query manually on the slave and then restart the slave with SET SQL_SLAVE_SKIP_COUNTER=1; SLAVE START; 0
|
||||||
count(*)
|
count(*)
|
||||||
30000
|
10
|
||||||
n
|
n
|
||||||
3456
|
3456
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
drop table if exists t1;
|
drop table if exists t1;
|
||||||
create table t1(n int not null, key(n)) delay_key_write = 1;
|
create table t1(n int not null, key(n)) delay_key_write = 1;
|
||||||
let $1=10000;
|
let $1=100;
|
||||||
while ($1)
|
while ($1)
|
||||||
{
|
{
|
||||||
eval insert into t1 values($1);
|
eval insert into t1 values($1);
|
||||||
|
@ -30,7 +30,7 @@ reset slave;
|
|||||||
connection master;
|
connection master;
|
||||||
drop table if exists t1,t2;
|
drop table if exists t1,t2;
|
||||||
create table t1(n int);
|
create table t1(n int);
|
||||||
let $1=30000;
|
let $1=10;
|
||||||
while ($1)
|
while ($1)
|
||||||
{
|
{
|
||||||
eval insert into t1 values($1);
|
eval insert into t1 values($1);
|
||||||
@ -39,10 +39,17 @@ while ($1)
|
|||||||
create table t2(id int);
|
create table t2(id int);
|
||||||
insert into t2 values(connection_id());
|
insert into t2 values(connection_id());
|
||||||
save_master_pos;
|
save_master_pos;
|
||||||
send update t1 set n = n + 1;
|
|
||||||
connection master1;
|
connection master1;
|
||||||
|
#avoid generating result
|
||||||
|
create temporary table t1_temp(n int);
|
||||||
|
insert into t1_temp select get_lock('crash_lock', 1) from t2;
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
send update t1 set n = n + get_lock('crash_lock', 2);
|
||||||
|
connection master1;
|
||||||
|
sleep 2;
|
||||||
select (@id := id) - id from t2;
|
select (@id := id) - id from t2;
|
||||||
sleep 0.1;
|
|
||||||
kill @id;
|
kill @id;
|
||||||
drop table t2;
|
drop table t2;
|
||||||
connection master;
|
connection master;
|
||||||
|
Reference in New Issue
Block a user