Commit a848d91e authored by unknown's avatar unknown

Merge perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-release

into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new


mysql-test/r/ndb_basic.result:
  Auto merged
mysql-test/t/ndb_basic.test:
  Auto merged
sql/sql_class.cc:
  Auto merged
mysql-test/r/ndb_multi.result:
  merge
mysql-test/t/ndb_multi.test:
  merge
sql/ha_ndbcluster.cc:
  merge
parents 4ede1ed3 348efa52
...@@ -325,6 +325,11 @@ inline double ulonglong2double(ulonglong value) ...@@ -325,6 +325,11 @@ inline double ulonglong2double(ulonglong value)
#define HAVE_SETFILEPOINTER #define HAVE_SETFILEPOINTER
#define HAVE_VIO_READ_BUFF #define HAVE_VIO_READ_BUFF
#ifndef __NT__
#undef FILE_SHARE_DELETE
#define FILE_SHARE_DELETE 0 /* Not implemented on Win 98/ME */
#endif
#ifdef NOT_USED #ifdef NOT_USED
#define HAVE_SNPRINTF /* Gave link error */ #define HAVE_SNPRINTF /* Gave link error */
#define _snprintf snprintf #define _snprintf snprintf
......
...@@ -35,6 +35,7 @@ Level Code Message ...@@ -35,6 +35,7 @@ Level Code Message
Error 1296 Got error 241 'Invalid schema object version' from NDB Error 1296 Got error 241 'Invalid schema object version' from NDB
Error 1412 Table definition has changed, please retry transaction Error 1412 Table definition has changed, please retry transaction
Error 1105 Unknown error Error 1105 Unknown error
flush table t1;
select * from t1; select * from t1;
a a
2 2
......
...@@ -50,7 +50,7 @@ select (@id := id) - id from t2; ...@@ -50,7 +50,7 @@ select (@id := id) - id from t2;
0 0
kill @id; kill @id;
drop table t2; drop table t2;
ERROR 08S01: Server shutdown in progress Got one of the listed errors
set global sql_slave_skip_counter=1; set global sql_slave_skip_counter=1;
start slave; start slave;
select count(*) from t1; select count(*) from t1;
......
...@@ -42,7 +42,7 @@ connection con1; ...@@ -42,7 +42,7 @@ connection con1;
# debug build running without our --debug=make_global..., will be # debug build running without our --debug=make_global..., will be
# error 0 (no error). The only important thing to test is that on # error 0 (no error). The only important thing to test is that on
# debug builds with our --debug=make_global... we don't hang forever. # debug builds with our --debug=make_global... we don't hang forever.
--error 0,1053 --error 0,1053,2013
reap; reap;
connection con2; connection con2;
......
...@@ -41,6 +41,7 @@ connection server1; ...@@ -41,6 +41,7 @@ connection server1;
--error 1412 --error 1412
select * from t1; select * from t1;
show warnings; show warnings;
flush table t1;
select * from t1; select * from t1;
# Connect to server2 and use the tables from there # Connect to server2 and use the tables from there
......
...@@ -92,7 +92,7 @@ kill @id; ...@@ -92,7 +92,7 @@ kill @id;
# We don't drop t3 as this is a temporary table # We don't drop t3 as this is a temporary table
drop table t2; drop table t2;
connection master; connection master;
--error 1053 --error 1053,2013
reap; reap;
connection slave; connection slave;
# The SQL slave thread should now have stopped because the query was killed on # The SQL slave thread should now have stopped because the query was killed on
......
...@@ -58,7 +58,7 @@ while ($1) ...@@ -58,7 +58,7 @@ while ($1)
enable_query_log; enable_query_log;
select * from t1 for update; select * from t1 for update;
start slave; start slave;
--sleep 3 # hope that slave is blocked now --real_sleep 3 # hope that slave is blocked now
insert into t2 values(22); # provoke deadlock, slave should be victim insert into t2 values(22); # provoke deadlock, slave should be victim
commit; commit;
sync_with_master; sync_with_master;
...@@ -76,7 +76,7 @@ change master to master_log_pos=532; # the BEGIN log event ...@@ -76,7 +76,7 @@ change master to master_log_pos=532; # the BEGIN log event
begin; begin;
select * from t2 for update; # hold lock select * from t2 for update; # hold lock
start slave; start slave;
--sleep 10 # slave should have blocked, and be retrying --real_sleep 10 # slave should have blocked, and be retrying
commit; commit;
sync_with_master; sync_with_master;
select * from t1; # check that slave succeeded finally select * from t1; # check that slave succeeded finally
...@@ -97,7 +97,7 @@ change master to master_log_pos=532; ...@@ -97,7 +97,7 @@ change master to master_log_pos=532;
begin; begin;
select * from t2 for update; select * from t2 for update;
start slave; start slave;
--sleep 10 --real_sleep 10
commit; commit;
sync_with_master; sync_with_master;
select * from t1; select * from t1;
......
...@@ -45,7 +45,7 @@ select (@id := id) - id from t3; ...@@ -45,7 +45,7 @@ select (@id := id) - id from t3;
kill @id; kill @id;
drop table t2,t3; drop table t2,t3;
connection master; connection master;
--error 0,1053 --error 0,1053,2013
reap; reap;
connection master1; connection master1;
--replace_column 2 # 5 # --replace_column 2 # 5 #
......
...@@ -3014,7 +3014,6 @@ void ha_ndbcluster::position(const byte *record) ...@@ -3014,7 +3014,6 @@ void ha_ndbcluster::position(const byte *record)
} }
*buff++= 0; *buff++= 0;
} }
size_t len = key_part->length; size_t len = key_part->length;
const byte * ptr = record + key_part->offset; const byte * ptr = record + key_part->offset;
Field *field = key_part->field; Field *field = key_part->field;
......
...@@ -473,10 +473,12 @@ void THD::awake(THD::killed_state state_to_set) ...@@ -473,10 +473,12 @@ void THD::awake(THD::killed_state state_to_set)
killed= state_to_set; killed= state_to_set;
if (state_to_set != THD::KILL_QUERY) if (state_to_set != THD::KILL_QUERY)
{
thr_alarm_kill(real_id); thr_alarm_kill(real_id);
#ifdef SIGNAL_WITH_VIO_CLOSE #ifdef SIGNAL_WITH_VIO_CLOSE
close_active_vio(); close_active_vio();
#endif #endif
}
if (mysys_var) if (mysys_var)
{ {
pthread_mutex_lock(&mysys_var->mutex); pthread_mutex_lock(&mysys_var->mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment