monty@mashka.mysql.fi
bc035c71f1
Merge with 3.23.51
...
Fixed wrong usage of sprintf() in ha_innodb.cc
2002-07-25 22:46:28 +03:00
monty@mashka.mysql.fi
dddc20d9d1
New SET syntax & system variables.
...
Made a some new buffers thread specific and changeable.
Resize of key_buffer.
AUTO_COMMIT -> AUTOCOMMIT
Fixed mutex bug in DROP DATABASE
Fixed bug when using auto_increment as second part of a key where first part could include NULL.
Split handler->extra() to extra() and extra_opt() to be able to support thread specific buffers.
Don't write message to error log when slave reconnects becasue of timeout.
Fixed possible update problem when using DELETE/UPDATE on small tables
(In some cases we used index even if table scanning would be better)
A lot of minior code cleanups
2002-07-23 18:31:22 +03:00
monty@mashka.mysql.fi
d909f4a551
Fix wrong usage of constant which could cause mysqld to use index when doing an update/delete on small tables.
...
code cleanup
2002-07-19 21:57:53 +03:00
Sinisa@sinisa.nasamreza.org
393bd5cff1
Another try to fix slave timeouts
2002-07-17 14:46:09 +03:00
Sinisa@sinisa.nasamreza.org
460477344a
Merge sinisa@work.mysql.com:/home/bk/mysql
...
into sinisa.nasamreza.org:/mnt/work/mysql
2002-07-16 22:08:41 +03:00
Sinisa@sinisa.nasamreza.org
8f7c6fcca4
making necessary changes after Sasha's correct remarks
2002-07-16 22:07:12 +03:00
Sinisa@sinisa.nasamreza.org
c57d66c587
Fixing slave timeouting
2002-07-16 21:16:34 +03:00
heikki@hundin.mysql.fi
4af87f6c78
slave.cc:
...
Suppress prints by slave.cc when there is a normal reconnect after the master has been quiet for the time of the net read timeout; this removes the Error 1159 messages many users have complained about in the replication of 3.23.51
2002-07-16 20:06:39 +03:00
monty@hundin.mysql.fi
0573b66df3
Added support for rw_tryrdlock() and rw_trywrlock()
2002-06-29 20:26:33 +03:00
monty@hundin.mysql.fi
8fa3c789f6
Added support for semaphores in mysys.
...
(Needed for query cache for systems which doesn't have native semaphores)
2002-06-29 00:16:15 +03:00
heikki@hundin.mysql.fi
1d225146e3
slave.cc:
...
Slave thread is always in an auto-commit state: remove unnecessary tests when we flush master info
2002-06-23 00:35:36 +03:00
miguel@hegel.local
581a85b1ce
Compiler warning with unreferenced local variable
2002-06-22 17:55:33 -03:00
heikki@hundin.mysql.fi
a4b29743bc
slave.h, slave.cc:
...
Do not flush the position to master.info file if we have a transaction open
2002-06-22 20:00:32 +03:00
monty@mashka.mysql.fi
b8421d34ec
Added the following new privleges:
...
SHOW DATABASES
CREATE TEMPORARY TABLE
LOCK TABLES
REPLICATION SLAVE & REPLICATION CLIENT
SUPER
EXECUTE
All scripts & documentation is updated for this change.
Added better error messages for global privileges
2002-06-12 15:04:18 +03:00
monty@mashka.mysql.fi
2aecdd1a91
Big code cleanup/review before 4.0.2 release.
...
(All commit emails since 4.0.1 checked)
This had to be done now, before the 4.1 tree changes to much, to make it easy to propagate bug fixes to the 4.1 tree.
2002-06-11 11:20:31 +03:00
monty@bitch.mysql.fi
9b6df03c14
Added a lot of DBUG_xxx statements to be able to find replication bug.
...
Fixed critical bug on 64 bit systems.
Cleanups
2002-06-08 21:02:01 +03:00
monty@hundin.mysql.fi
e4130b11c9
removed init_count from IO_CACHE.
...
Added missing mutex_unlock to slave replication code.
2002-06-05 23:04:38 +03:00
monty@hundin.mysql.fi
f0b28da6f9
merge with 4.0
2002-06-03 12:59:31 +03:00
monty@hundin.mysql.fi
6e54cc492c
Extension of .frm file (not yet ready for push)
2002-06-02 21:22:20 +03:00
monty@hundin.mysql.fi
44a631f1fc
Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0
2002-06-02 17:05:08 +03:00
monty@hundin.mysql.fi
cde8c0edb7
Fixed bug in wait_for_relay_log_space()
...
Added checking of sem_init() in configure.
2002-06-02 17:04:16 +03:00
nick@nick.leippe.com
fc52e079d0
fixed 'load table from master' hang when host is empty
...
added respective test case
2002-05-31 16:56:02 -07:00
jani@hynda.(none)
d78308449e
Fixed a bug in make test, non-debug version.
2002-05-29 15:20:36 +03:00
miguel@hegel.local
3facae335e
Sergei's MyODBC fix
2002-05-12 23:01:45 -03:00
nick@nick.leippe.com
2453d43ab0
Backport of Sasha's fix to 3.23 from 4.0
...
see dev-private email from sasha, subject:
URGENT: rpl_sporadic_master
2002-05-02 18:55:38 -07:00
monty@hundin.mysql.fi
7d276c3bb8
Portability fix
2002-04-30 16:40:46 +03:00
serg@serg.mysql.com
b79f2f510d
Merge work:/home/bk/mysql-4.0
...
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.0
2002-04-28 21:27:21 +00:00
serg@serg.mysql.com
900788b2a1
init_dynamic_array MyODBC compatibility fix
2002-04-28 21:22:37 +00:00
sasha@mysql.sashanet.com
08623f050c
replication bugfixes
2002-04-25 07:33:02 -06:00
sasha@mysql.sashanet.com
b82d2ff355
fixed assertion failure on corrupted log in reckless slave mode
2002-04-18 18:41:45 -06:00
sasha@mysql.sashanet.com
d7b7e09293
reckless slave option
...
bison 1.34 yacc rule compliance
more robust handling of relay log corruption
2002-04-15 17:09:30 -06:00
monty@hundin.mysql.fi
b5a145d872
merge
2002-04-13 15:34:39 +03:00
sasha@mysql.sashanet.com
14603a3620
relay_log_space_limit
...
DBUG_ macro cleanup
buffer boundary cleanup
This changeset, although not fully tested, works for me better than
anything I've had so far, including what is in the repository. I will
push it unless something crashes while I am writing this :-)
2002-04-01 21:46:23 -07:00
sasha@mysql.sashanet.com
be388422eb
replication updates. This changeset seems to be working fine on test systems.
...
If no problems are discovered in the next week, this will make the replication
code ready for 4.0.2 release.
2002-03-30 12:36:05 -07:00
sasha@mysql.sashanet.com
ab1fdbdeac
Merge work:/home/bk/mysql-4.0
...
into mysql.sashanet.com:/reiser-data/mysql-4.0
2002-03-26 22:23:51 -07:00
sasha@mysql.sashanet.com
2e6b48afd3
replication updates and bugfixes. Still not perfect - there is some strange
...
memory corruption I can only repeat on one system.
2002-03-15 18:44:44 -07:00
bar@gw.udmsearch.izhnet.ru
c60a29f0ee
Hash now supports several charsets
2002-03-14 21:44:42 +04:00
serg@serg.mysql.com
3f51fcf1f1
mi_check flags cleanup
...
CHECK/REPAIR syntax cleanup
REPAIR ... USE_FRM syntax
2002-03-13 17:20:17 +00:00
bar@gw.udmsearch.izhnet.ru
b37ce8e769
New ctype functions/macros to support many charsets at a time
2002-03-12 21:37:58 +04:00
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
monty@hundin.mysql.fi
40c77c767b
Removed compiler warnings
2002-02-09 04:00:24 +02: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
sasha@mysql.sashanet.com
0d67738e20
misc cleanup
2001-12-13 17:21:04 -07:00
sasha@mysql.sashanet.com
f7acf09d9c
slave-skip-errors
...
added extra/mysql_install.c - will work on it in 4.0, but it does not hurt
to have it sit in 3.23 tree for now since it will eventually be backported
to 3.23 anyway
2001-12-12 18:55:33 -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
sasha@mysql.sashanet.com
242037992f
merged with 3.23 replication updates
2001-06-28 19:48:49 -06:00
sasha@mysql.sashanet.com
2e4d264c27
fixed message in post-commit trigger
...
added debugging options to master to behave sporadically, and a
test case to make sure the slave can deal with it
2001-06-28 18:22:29 -06:00
sasha@mysql.sashanet.com
51e3c5de88
--do-test option in mysql-test-run - will do only tests that match the pattern
...
updated rotate event to set new position along with the new log
2001-06-26 17:02:33 -06:00
sasha@mysql.sashanet.com
a91ac47cde
show master forced rotate info in SHOW BINLOG EVENTS
...
mark a master-forced rotate with a special flag
2001-06-23 19:37:24 -06:00
sasha@mysql.sashanet.com
924dadef97
merged new 3.23 errors
...
fixed bugs in log seq - now starting to look good
fixes for SHOW BINLOG EVENTS
will push this one
2001-06-22 08:35:18 -06:00
sasha@mysql.sashanet.com
b86ffcef9a
merge
2001-06-21 16:15:00 -06:00
sasha@mysql.sashanet.com
1e76c806eb
fixed drop/create database bug when holding global read lock
...
preserve originating server id in Intvar events to avoid inifinite loops
2001-06-21 15:59:51 -06:00
sasha@mysql.sashanet.com
7ce33f90fb
Added slave log event to record the master position in of slave thread
...
in slave binlog - needed for synchronization slave during recovery
2001-06-14 14:12:40 -06:00