Commit graph

151 commits

Author SHA1 Message Date
sasha@mysql.sashanet.com
c9a4a5d88e fixed replication bug
not yet tested - will not be pushed for a few hours - need to commit in 
order to pull
2002-03-09 13:50:07 -07:00
sasha@mysql.sashanet.com
66cb43d216 fixed replication assert failure ( found by Jeremy Zawodny) 2002-03-08 15:02:11 -07:00
sasha@mysql.sashanet.com
28848fa93b DBUG_ASSERT_LOCK 2002-03-08 09:26:56 -07:00
sasha@mysql.sashanet.com
a664ca007d fixed the use of unitialized variable - code now works on the test system
of one of our users which replicates from a live server. So I now have a
lot of confidence in it and will push. It passes all tests, so I if I broke
somebody's code in 3.23 merge this is your fault - you should have had a good test
case :-)
2002-03-02 22:00:37 -07:00
sasha@mysql.sashanet.com
40be5306e1 make my_vsnprintf() work with oversized strings
fixed replication bug - flush_master_info() needs to be called every time we read an 
    event from master

this is will not be pushed yet
2002-03-01 17:12:15 -07:00
sasha@mysql.sashanet.com
8ef07c4ffa updated test suite to be able to run 3.23 master and 4.0 slave
got LOAD DATA INFILE replication from 3.23 master to 4.0 slave to work
for some reason query_cache now fails - will push anyway and document the
failure if I can repeat it.
2002-02-09 13:58:53 -07:00
sasha@mysql.sashanet.com
6980a24e9d fixes for slave backward compat
fixed bug in LOAD DATA FROM MASTER
fixed rpl000001.result
Slave now replicates 3.23 master, with the exception of LOAD DATA INFILE, 
which is still buggy. Will push this one after the pull/merge
2002-02-07 15:29:46 -07:00
sasha@mysql.sashanet.com
65989dacb5 Merge work:/home/bk/mysql-4.0
into mysql.sashanet.com:/reiser-data/mysql-4.0
2002-01-31 11:04:49 -07:00
monty@hundin.mysql.fi
6a1b08cbd4 Added --sql-mode=NO_UNSIGNED_SUBTRACTION 2002-01-30 15:32:48 +02:00
sasha@mysql.sashanet.com
d2b162982f Merge work:/home/bk/mysql-4.0
into mysql.sashanet.com:/reiser-data/mysql-4.0
2002-01-29 15:16:40 -07:00
sasha@mysql.sashanet.com
2d3cb29249 temporary commit - need to pull Monty's changes 2002-01-29 13:50:09 -07:00
monty@hundin.mysql.fi
be46289855 New error messages
Test of unsigned BIGINT values
Fixes for queries-per-hour
Cleanup of replication code (comments and portability fixes)
Make most of the binary log code 4G clean
Changed syntax for GRANT ... QUERIES PER HOUR
2002-01-29 18:32:16 +02:00
sasha@mysql.sashanet.com
7275dcef35 misc replication bugfixes including some needed modifications in IO_CACHE
likely() and unlikely() branch prediction compiler hint macros
clean-up of comments
2002-01-26 22:26:24 -07:00
sasha@mysql.sashanet.com
171948ba86 more predicatable slave behaviour with wait_for_slave_stop in mysqltest
fixed a couple of bugs with SEQ_READ_APPEND cache
rpl000016 still has non-deterministic result, but I am going to commit and
push since what I have is now better than what is in the main repository
2002-01-24 22:49:47 -07:00
sasha@mysql.sashanet.com
8e43ad12c3 post-merge fixes, including slave-skip-errors backport
fixed too quick timeout in mysql-test-run which caused a race with the
 new server getting started before the old one completely finished 
 shutdown. This should fix the pid warning we've been getting as well as
 inconsistent results when running tests with the manager
2002-01-22 15:05:11 -07:00
sasha@mysql.sashanet.com
56129ce634 Here comes a nasty patch, although I am not ready to push it yet. I will
first pull, merge,test, and get it to work.

The main change is the new replication code - now we have two slave threads
SQL thread and I/O thread. I have also re-written a lot of the code to 
prepare for multi-master implementation. 

I also documented IO_CACHE quite extensively and to some extend, THD class.
2002-01-19 19:16:52 -07:00
monty@hundin.mysql.fi
69f6802632 merge 2001-11-28 14:52:11 +02:00
sasha@mysql.sashanet.com
5d2f2c8369 fixed alias drop bug in binlog
fixed skip counter to do the RightThing (TM) when the user messes up.
Still do RightThing when he gets it right.
2001-11-27 18:20:24 -07:00
sasha@mysql.sashanet.com
586e812452 use env vars for socket/port in connect in mysqltest
--local-master option in mysql-test-run
do not log CREATE TABLE when doing table dump
fix replication to slave off 3.23 master
2001-11-17 17:23:46 -07:00
sasha@mysql.sashanet.com
beaf95b09d work to enable reading 3.23 logs - not yet finished
moved fail-safe replication routines from sql_repl.cc to repl_failsafe.cc
write start event only in the first log
2001-11-10 22:24:12 -07:00
sasha@mysql.sashanet.com
7fda1ab9f2 fixed bug with temporary tables replication if one does FLUSH LOGS 2001-10-29 18:21:33 -07:00
sasha@mysql.sashanet.com
be4dfd21dd cleanup
removal of duplicate code in mf_iocache.cc 
work on failsafe replication
work on SEQ_READ_APPEND io cache
2001-10-23 13:28:03 -06:00
monty@hundin.mysql.fi
4eb41be6ff Fix after merge 2001-10-20 11:27:03 +03:00
sasha@mysql.sashanet.com
f6321e8b75 fixed sleep
bug on reconnect
2001-10-17 14:12:14 -06:00
sasha@mysql.sashanet.com
a74811e72b 64-bit portability fixes in network I/O
use $MAX_TABLES mysqltest variable to make join test portable
make test now works with the manager on IA64 Linux
2001-10-13 09:28:35 -06:00
sasha@mysql.sashanet.com
d10b81bf51 fixes for mysql-test to run without manager
a bit more work on failsafe replication
2001-10-11 13:54:06 -06:00
monty@work.mysql.com
a17173c74d Merge work.mysql.com:/home/bk/mysql
into work.mysql.com:/home/bk/mysql-4.0
2001-10-07 12:26:03 +02:00
sasha@mysql.sashanet.com
1bea4bd36b fixed crash on slave when master aborts a query that has % in it. 2001-10-05 13:18:18 -06:00
monty@work.mysql.com
1805368556 merge 2001-10-03 18:00:38 +02:00
monty@hundin.mysql.fi
f5a53594c8 Added usage of --master-retry-count to make mysql-test-run safer. 2001-10-03 16:27:20 +03:00
monty@work.mysql.com
193ae61fc0 merge 2001-10-02 21:33:47 +02:00
monty@hundin.mysql.fi
db82d30bf0 Fix for make dist
Made replication test portable
Fixed buffer overrun bug in replication
2001-10-02 22:21:14 +03:00
monty@hundin.mysql.fi
5a14bb2a7e Integrated table->ref_primary_key into table->part_of_key
Fixed bug in UNION
2001-09-21 03:38:35 +03:00
monty@work.mysql.com
55485f5c2d Merge work.mysql.com:/home/bk/mysql
into work.mysql.com:/home/bk/mysql-4.0
2001-09-18 04:17:52 +02:00
monty@hundin.mysql.fi
cd78a8be66 Fix for LOAD DATA FROM MASTER when using tables with checksum
Fixed some wrong test cases
2001-09-18 04:58:15 +03:00
monty@hundin.mysql.fi
0d72e5440f Portability fixes 2001-09-15 16:22:34 +03:00
monty@work.mysql.com
447c18954e merge with 3.23.42 2001-09-02 18:38:33 +02:00
monty@hundin.mysql.fi
733f865f54 Fixes for OS2.
Fix bug in isamlog
Add argument types to function declarations.
2001-08-22 01:45:07 +03:00
monty@hundin.mysql.fi
cf19429793 Cleanups 2001-08-13 17:59:40 +03:00
sasha@mysql.sashanet.com
09eda84f2e LOAD DATA INFILE is now replicated properly, except for cleanup on
Stop event and bugs the test suite could not catch
Did some big restructuring of binlog event classes - most important
change is that now each event class has exec_event method and one does
not need to modify slave core code to add a new event. Slave code is
now much smaller and easier to read
2001-08-03 15:57:53 -06:00
monty@work.mysql.com
01cda0929a merge 2001-07-18 23:58:10 +02:00
sasha@mysql.sashanet.com
1c3dc8875e fixed mysterious offset confusion bug
added a test case for it - took some creative work to figure out
how to make it happen at will
updated the manual
2001-07-18 14:26:43 -06:00
sasha@mysql.sashanet.com
14c23716a6 added slave_net_timeout 2001-07-17 14:22:52 -06:00
sasha@mysql.sashanet.com
c0b4b2360c signal slave thread to stop during shutdown 2001-07-11 21:46:23 -06:00
sasha@mysql.sashanet.com
fa4e355dac send kill signal to slave thread on shutdown 2001-07-11 21:33:19 -06:00
sasha@mysql.sashanet.com
21a8aaa29d fixed race condition in automatic binlog rotation
remove extension from binary log if the user specifies one to avoid
    non-rotatable logs
fixed possible use of unitialized IO_CACHE in debug mode
2001-07-11 19:29:23 -06:00
sasha@mysql.sashanet.com
38d3bf5172 mysql-test/t/rpl_sporadic_master.test
use truncate table
sql/slave.cc
    fixed race condition on server shutdown
sql/sql_repl.cc
    fixed uninitialized use of io_cache
2001-07-10 20:35:42 -06:00
sasha@mysql.sashanet.com
5527f9bfc3 mysql-test/t/rpl_sporadic_master.test
fixed test case to produce same results on txn-enabled binary. 
    temporary fix - permanent fix is it make mysqld behave the same with
    MyISAM on auto_increment insert after delete from tbl_name regardless
    of how the binary was compiled
sql/slave.cc
    fixed concurrency bug with log_seq
sql/slave.h
    last_log_seq needs to be updated atomically with pos
sql/sql_repl.cc
    cleared up comment and fixed concurrency bug
2001-07-10 18:08:37 -06:00
sasha@mysql.sashanet.com
27561841d1 merged latest changes in 3.23 2001-07-07 15:35:23 -06:00
monty@tik.mysql.fi
19a99dd3fd dded volatile to replication variable 2001-07-07 23:26:06 +03:00