tomas@poseidon.ndb.mysql.com
47cb191a79
Bug #17499 Alter table of ndb partitioned tables causes mysqld to core
...
- moved used_partitions initialization
2006-02-28 14:29:48 +01:00
tomas@poseidon.ndb.mysql.com
4dee17f159
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new
...
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new
2006-02-28 12:40:19 +01:00
mats@mysql.com
1e66bc0d16
Merge mysql.com:/home/bkroot/mysql-5.1-new
...
into mysql.com:/home/bk/w3023-mysql-5.1-new
2006-02-28 10:06:58 +01:00
dlenev@mysql.com
8dbdf5237e
Merge mysql.com:/home/dlenev/src/mysql-5.0-bg13525
...
into mysql.com:/home/dlenev/src/mysql-5.1-merges2
2006-02-27 20:00:07 +03:00
dlenev@mysql.com
6cb5c38c14
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/dlenev/src/mysql-5.0-bg13525
2006-02-27 20:00:03 +03:00
tomas@poseidon.ndb.mysql.com
bfc43d5745
Bug #17499 Alter table of ndb partitioned tables causes mysqld to core
2006-02-27 17:04:49 +01:00
dlenev@mysql.com
4ca3409390
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-runtime
...
into mysql.com:/home/dlenev/src/mysql-5.0-bg13525
2006-02-26 21:20:13 +03:00
dlenev@mysql.com
0b422c635d
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-runtime
...
into mysql.com:/home/dlenev/src/mysql-5.0-bg13525
2006-02-26 16:38:48 +03:00
guilhem@mysql.com
eb4688330d
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-5.1-new
...
into mysql.com:/home/mysql_src/mysql-5.1-new
2006-02-25 22:22:12 +01:00
guilhem@mysql.com
0071749595
WL#2977 and WL#2712 global and session-level variable to set the binlog format (row/statement),
...
and new binlog format called "mixed" (which is statement-based except if only row-based is correct,
in this cset it means if UDF or UUID is used; more cases could be added in later 5.1 release):
SET GLOBAL|SESSION BINLOG_FORMAT=row|statement|mixed|default;
the global default is statement unless cluster is enabled (then it's row) as in 5.1-alpha.
It's not possible to use SET on this variable if a session is currently in row-based mode and has open temporary tables (because CREATE
TEMPORARY TABLE was not binlogged so temp table is not known on slave), or if NDB is enabled (because
NDB does not support such change on-the-fly, though it will later), of if in a stored function (see below).
The added tests test the possibility or impossibility to SET, their effects, and the mixed mode,
including in prepared statements and in stored procedures and functions.
Caveats:
a) The mixed mode will not work for stored functions: in mixed mode, a stored function will
always be binlogged as one call and in a statement-based way (e.g. INSERT VALUES(myfunc()) or SELECT myfunc()).
b) for the same reason, changing the thread's binlog format inside a stored function is
refused with an error message.
c) the same problems apply to triggers; implementing b) for triggers will be done later (will ask
Dmitri).
Additionally, as the binlog format is now changeable by each user for his session, I remove the implication
which was done at startup, where row-based automatically set log-bin-trust-routine-creators to 1
(not possible anymore as a user can now switch to stmt-based and do nasty things again), and automatically
set --innodb-locks-unsafe-for-binlog to 1 (was anyway theoretically incorrect as it disabled
phantom protection).
Plus fixes for compiler warnings.
2006-02-25 22:21:03 +01:00
brian@zim.(none)
f40705eb9b
Merge zim.(none):/home/brian/mysql/mysql-5.0
...
into zim.(none):/home/brian/mysql/dep-5.1
2006-02-24 23:31:57 -08:00
dlenev@mysql.com
0c15039e74
Fix for bug #13525 "Rename table does not keep info of triggers".
...
Let us transfer triggers associated with table when we rename it (but only if
we are not changing database to which table belongs, in the latter case we will
emit error).
2006-02-24 23:50:36 +03:00
mats@mysql.com
13a61982a9
Merge mysqldev@production.mysql.com:my/mysql-5.1-release
...
into mysql.com:/home/bk/w3023-mysql-5.1-new
2006-02-24 16:31:38 +01:00
konstantin@mysql.com
af62c4a959
Merge mysql.com:/opt/local/work/mysql-4.1-13134
...
into mysql.com:/opt/local/work/mysql-5.0-runtime
2006-02-24 00:00:15 +03:00
konstantin@mysql.com
442c2ba8af
A fix and a test case for Bug#13134 "Length of VARCHAR() utf8
...
column is increasing when table is recreated with PS/SP":
make use of create_field::char_length more consistent in the code.
Reinit create_field::length from create_field::char_length
for every execution of a prepared statement (actually fixes the
bug).
2006-02-21 19:52:20 +03:00
evgen@moonbone.local
e6924206cd
Fixed bug#17530: Incorrect key truncation on table creation caused server crash.
...
When a too long field is used for a key, only a prefix part of the field is
used. Length is reduced to the max key length allowed for storage. But if the
field have a multibyte charset it is possible to break multibyte char
sequence. This leads to the failed assertion in the innodb code and
server crash when a record is inserted.
The make_prepare_table() now aligns truncated key length to the boundary of
multibyte char.
2006-02-21 18:09:32 +03:00
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
dd17f48630
Merge c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/mysql-5.1-bugs
...
into c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/wl2826
2006-02-20 16:41:46 -05:00
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
d42757f87e
WL 2826: Error handling of ALTER TABLE for partitioning
...
Bug fixes
2006-02-20 16:22:19 -05:00
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
6ee7ab8aa3
WL 2826: Error handling of ALTER TABLE for partitioning
...
Fix compiler issues
2006-02-20 15:07:03 -05:00
holyfoot@mysql.com
78cc24e284
Merge bk@192.168.21.1:mysql-4.1
...
into mysql.com:/home/hf/work/mysql-4.1.15225
2006-02-20 18:01:59 +04:00
jimw@mysql.com
10b96ec4c8
Merge mysql.com:/home/jimw/my/mysql-5.1-17169
...
into mysql.com:/home/jimw/my/mysql-5.1-clean
2006-02-17 10:55:43 -08:00
tomas@poseidon.ndb.mysql.com
9495f8c56a
Bug #17210 Create temp table call to ha_ndbcluster::create_handler_files caused core
...
- do not try to create ndb temp tables even if default storage is ndb
2006-02-17 17:12:35 +01:00
holyfoot@mysql.com
be02944df6
Merging 5.0->5.1
2006-02-17 11:26:03 +04:00
holyfoot@mysql.com
f500cbf83c
Merge bk@192.168.21.1:mysql-5.0
...
into mysql.com:/home/hf/work/mysql-5.0.w2645
2006-02-17 10:56:54 +04:00
holyfoot@deer.(none)
053d90a234
WL#2645 (CHECK TABLE FOR UPGRADE)
...
necessary implementation in the server
mysql_upgrade script added
2006-02-17 10:52:32 +04:00
jimw@mysql.com
d30dbf6efa
Bug #17169 : Partitions: out of memory if add partition and unique.
...
When creating a new partition, a bogus memory allocation problem was
reported.
2006-02-16 08:15:36 -08:00
mats@mysql.com
43bc3c4068
Merge mysql.com:/home/bkroot/mysql-5.1-new
...
into mysql.com:/home/bk/w3023-mysql-5.1-new
2006-02-16 08:46:45 +01:00
mats@mysql.com
2884408c75
WL#3023 (Use locks in a statement-like manner):
...
Table maps are now written on aquiring locks to tables and released
at the end of each logical statement.
2006-02-16 08:30:53 +01:00
mikron@mikael-ronstr-ms-dator.local
aec1c506a5
WL 2826: Error handling of ALTER TABLE for partitioning
...
First step for handling errors in ALTER TABLE for partitioning
2006-02-14 14:22:21 +01:00
mikron@mikael-ronstr-ms-dator.local
5b99026ac7
WL 2826: Error handling of ALTER TABLE for partitioning
...
Added action code for recovery
2006-02-14 11:08:58 +01:00
ingo@mysql.com
b4b5dc18c4
Merge mysql.com:/home/mydev/mysql-5.0-bug8841
...
into mysql.com:/home/mydev/mysql-5.1-bug8841
2006-02-14 09:29:37 +01:00
mikron@mikael-ronstr-ms-dator.local
5a20f2d0b4
WL 2826: Error handling of ALTER TABLE for partitioning
...
Introduce log entry to handle replace of frm file
2006-02-13 13:52:23 +01:00
bar@mysql.com
53a0372d87
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-new
...
into mysql.com:/usr/home/bar/mysql-5.1-new.fscs
2006-02-13 11:53:56 +04:00
bar@mysql.com
611cbc2f4d
renamedb.test, renamedb.result:
...
new file
Many files:
WL#757 RENAME DATABASE
2006-02-13 11:49:28 +04:00
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
12647d736b
Compile fixes
2006-02-11 00:41:52 -05:00
mikron@c-370be253.1238-1-64736c10.cust.bredbandsbolaget.se
10c5b8f3ba
WL 2826: Error handling of ALTER TABLE for partitioning
...
Make lots of fixes to handle the most complex case of reorganising
of partitions where two-phased processes are needed in some cases.
2006-02-10 22:36:01 +01:00
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
abe4952fcd
Don't use free'd memory, bad idea
...
Free all memory with mutex and destroy mutex as final step
2006-02-10 13:33:08 -05:00
mikron@c-370be253.1238-1-64736c10.cust.bredbandsbolaget.se
d7f164a927
WL 2826: Error handling of ALTER TABLE for partitioning
...
New function to set exec_log_entry
Moving code outside lock of table log
Fixing some initialisations of list reference to avoid
releasing wrong parts
2006-02-10 12:30:51 +01:00
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
ee6508d2ab
Bug fixes + debug stuff
2006-02-09 23:57:54 -05:00
mikron@mikael-ronstr-ms-dator.local
4b6b06fd80
WL 2826: Error handling of ALTER TABLE for partitioning
...
A little more complete handling
2006-02-09 20:20:21 +01:00
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
dd59559597
WL 2826: Error handling of ALTER TABLE for partitioning
...
A number of fixes
2006-02-09 14:13:22 -05:00
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
789160cef3
Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.1-wl2826
...
into c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/wl2826
2006-02-09 12:14:51 -05:00
mikron@c-e90be253.1238-1-64736c10.cust.bredbandsbolaget.se
d9ef322c5f
WL 2826: Error handling for ALTER TABLE for partitioning
...
Step 14: First version of table log for add/Drop partition
2006-02-09 11:05:05 +01:00
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
9399e98b71
WL 2826: Error handling of ALTER TABLE for partitioning
...
Close down table log also at exit of main thread
2006-02-08 20:26:56 -05:00
pappa@c-9a08e253.1238-1-64736c10.cust.bredbandsbolaget.se
c12c095226
WL 2826: Error handling for ALTER TABLE for partitioning Step 13
...
Lots of compilation fixes
2006-02-08 18:04:58 -05:00
mikron@c-9b0be253.1238-1-64736c10.cust.bredbandsbolaget.se
221a17dbc3
WL 2826: Error handling for ALTER TABLE for partitioning
...
Most of the code for handling the table log is in place now, except
the action part at recovery and proper error handling in some places.
2006-02-08 15:14:15 +01:00
mikron@mikael-ronstr-ms-dator.local
17897f9a5c
WL 2826: Step 12
...
More table log code
2006-02-07 16:26:34 +01:00
mikron@c-fa09e253.1238-1-64736c10.cust.bredbandsbolaget.se
5091f3a8a5
WL 2826: Step 11
...
Lots of new code for table log
2006-02-07 10:45:07 +01:00
mikron@c-9c0ae253.1238-1-64736c10.cust.bredbandsbolaget.se
83890afeb2
WL 2826: Step 10
...
New methods to read/write/initialise table log
2006-02-06 21:47:03 +01:00
tomas@poseidon.ndb.mysql.com
a8f1cffd95
Bug #17038 , distribution of schema operation to multiple binlogs missing/multiple entries, partial fix
...
- log alter table directly in server instead of in handler
- acknowledge alter table _after_ all binlog events have been processed
2006-02-06 11:47:12 +01:00