Commit graph

36582 commits

Author SHA1 Message Date
mskold/marty@mysql.com/quadfish.(none)
fc6f839b03 bug#21072 Duplicate key error in NDB references wrong key: Post-review fixes 2007-12-07 10:33:50 +01:00
mskold/marty@mysql.com/quadfish.(none)
27c025061d bug#21072 Duplicate key error in NDB references wrong key: Return correct key for non-batching inserts 2007-12-06 17:15:21 +01:00
mskold/marty@quadfish.(none)
88fc48fd5e Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into  mysql.com:/home/marty/MySQL/mysql-5.0-ndb
2007-11-22 14:49:40 +01:00
jonas@perch.ndb.mysql.com
3abdc0d943 Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb
2007-11-14 13:06:19 +01:00
jonas@perch.ndb.mysql.com
f8c413a510 ndb - bug#32160 (recommit to 5.0)
fix lcp master take over bug
2007-11-07 20:57:21 +01:00
mskold/marty@mysql.com/quadfish.(none)
022b835c67 Removed compiler warnings 2007-11-06 10:28:11 +01:00
mskold/marty@mysql.com/quadfish.(none)
4cf742a8a8 ha_ndbcluster.h:
Bug #31956       auto increment bugs in MySQL Cluster: Added utility method and constant for internal prefetch default
ndb_auto_increment.result:
  BitKeeper file /home/marty/MySQL/mysql-5.0-ndb/mysql-test/r/ndb_auto_increment.result
mysqld.cc:
  Bug #25176  	Trying to set ndb_autoincrement_prefetch_sz always fails: Changed pointer to max value
  Bug #31956  	auto increment bugs in MySQL Cluster: Changed meaning of ndb_autoincrement_prefetch_sz to specify prefetch between statements, changed default to 1 (with internal prefetch to at least 32 inside a statement)
ndb_insert.test, ndb_insert.result:
  Moved auto_increment tests to ndb_auto_increment.test
ndb_auto_increment.test:
  BitKeeper file /home/marty/MySQL/mysql-5.0-ndb/mysql-test/t/ndb_auto_increment.test
ha_ndbcluster.cc:
  Bug #31956       auto increment bugs in MySQL Cluster: Changed meaning of ndb_autoincrement_prefetch_sz to specify prefetch between statements, changed default to 1 (with internal prefetch to at least 32 inside a statement), added handling of updates of pk/unique key with auto_increment
  Bug #32055  	Cluster does not handle auto inc correctly with insert ignore statement
2007-11-05 20:18:22 +01:00
knielsen@ymer.(none)
084849d917 Bug #31848: Test failure: Cluster has problems on insert with auto-increment
Fix uninitialized variable causing failures for some interpreted update
operations on gcc 4.2.1.
2007-11-01 07:59:55 +01:00
jonas@perch.ndb.mysql.com
2965c480ec ndb - bug#31635 (5.0)
0 pad varsize keys in ndbapi
2007-10-26 08:42:33 +02:00
knielsen@loke.(none)
b77f44c76d Merge loke.(none):/home/knielsen/devel/bug31810
into  loke.(none):/home/knielsen/devel/mysql-5.0-ndb
2007-10-25 10:54:23 +02:00
knielsen@loke.(none)
75a5c28d98 Merge loke.(none):/home/knielsen/devel/bug31761
into  loke.(none):/home/knielsen/devel/mysql-5.0-ndb
2007-10-25 08:45:27 +02:00
knielsen@loke.(none)[knielsen]
e16f03cd64 BUG#31810: Potential infinite loop with autoincrement failures in ndb
Fix extra semicolon causing if-statement to be disabled.
2007-10-25 08:40:42 +02:00
knielsen@loke.(none)[knielsen]
a7f7875578 BUG#31761: Code for cluster is not safe for strict-alias optimization in new gcc
Fix problem with AttributeHeader::init() seen with gcc 4.2.1.

Using the same object as both Uint32 and class AttributeHeader violates
strict aliasing rule.
2007-10-25 07:57:18 +02:00
mskold/marty@linux.site
4785c57334 Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into  mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
2007-10-24 14:07:33 +02:00
pekka@sama.ndb.mysql.com
5961666886 ndb - bug#29390: fix mem leak introduced in previous cset 2007-10-14 16:17:39 +02:00
pekka@sama.ndb.mysql.com
82da7623d4 ndb - bug#29390: if ScanFilter is too large, abort or optionally discard it 2007-10-04 11:32:49 +02:00
mskold/marty@mysql.com/linux.site
94e7bf9f4b Removed tabs 2007-10-03 09:29:10 +02:00
stewart@flamingspork.com[stewart]
87359889f3 [PATCH] BUG#29565 managment server can log entries multiple times after mgmd restart
Close the event log on shutdown of mgmd (in stopEventLog())

Index: ndb-work/ndb/src/mgmsrv/MgmtSrvr.cpp
===================================================================
2007-10-03 16:16:48 +10:00
mskold/marty@mysql.com/linux.site
403f0afc29 Bug#25817 UPDATE IGNORE doesn't check write_set when checking unique indexes: Added checks 2007-10-02 13:36:13 +02:00
stewart@willster.(none)
f72c7d0108 remove debug printout 2007-10-01 14:32:22 +10:00
stewart@flamingspork.com[stewart]
33412d2b8e [PATCH] BUG#30379 Better randomise time before retry in timeout check (DBTC)
timoOutLoopStartLab() checks if any transactions have been delayed
for so long that we are forced to perform some action (e.g. abort,
resend etc).

It is *MEANT* to (according to the comment):
> To avoid aborting both transactions in a deadlock detected by time-out
> we insert a random extra time-out of upto 630 ms by using the lowest
> six bits of the api connect reference.
> We spread it out from 0 to 630 ms if base time-out is larger than 3 sec,
> we spread it out from 0 to 70 ms if base time-out is smaller than 300 msec,
> and otherwise we spread it out 310 ms.

The comment (as all do) lies.

the API connect reference is not very random, producing incredibly
predictable "random" numbers. This could lead to both txns being
aborted instead of just one.

Before:
timeout value: 123 3
timeout value: 122 2
timeout value: 122 2
timeout value: 122 2
timeout value: 123 3

After:
timeout value: 127 7
timeout value: 126 6
timeout value: 129 9
timeout value: 139 19
timeout value: 137 17
timeout value: 151 31
timeout value: 130 10
timeout value: 132 12

Index: ndb-work/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
===================================================================
2007-09-25 12:01:23 +02:00
mskold/marty@linux.site
f2159e2d21 Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into  mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
2007-09-13 10:35:11 +02:00
mskold/marty@mysql.com/linux.site
44b6c2edad bug#27494 An invalid subselect crashes mysql server: Added check for missing arguments 2007-09-13 09:47:21 +02:00
tomas@whalegate.ndb.mysql.com
83eed4d876 Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-bj
2007-09-12 13:55:22 +02:00
tomas@whalegate.ndb.mysql.com
461a3dccac BUG#23354 revert 2007-09-12 13:53:32 +02:00
pekka@sama.ndb.mysql.com
af1ce5c230 ndb - bug#29102 : use locked read even for blob parts 2007-08-29 21:45:53 +03:00
lzhou/zhl@dev3-63.(none)
0f22183652 Merge lzhou@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb-bj
into  dev3-63.(none):/home/zhl/mysql/mysql-5.0/bug29674
2007-08-20 15:29:59 +00:00
lzhou/zhl@dev3-63.(none)
2093858fff BUG#29674 Remove warning in pushbuild in 5.0 2007-08-20 14:57:04 +00:00
lzhou/zhl@dev3-63.(none)
804684c292 Merge lzhou@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb-bj
into  dev3-63.(none):/home/zhl/mysql/mysql-5.0/bug29674
2007-08-20 10:59:14 +00:00
lzhou/zhl@dev3-63.(none)
d48067537b BUG#29674 add install data of the new test case in makefile.am 2007-08-20 10:47:09 +00:00
Justin.He/justin.he@dev3-240.dev.cn.tlan
921cba22bc Merge dev3-240.dev.cn.tlan:/home/justin.he/mysql/mysql-5.0/mysql-5.0-ndb
into  dev3-240.dev.cn.tlan:/home/justin.he/mysql/mysql-5.0/mysql-5.0-ndb-bj.merge
2007-08-16 11:06:41 +08:00
lzhou/zhl@dev3-63.(none)
c8b88e4ceb Merge lzhou@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb-bj
into  dev3-63.(none):/home/zhl/mysql/mysql-5.0/bug29674
2007-08-15 16:28:27 +00:00
mskold/marty@linux.site
822fd77ab2 Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into  mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
2007-08-14 15:34:04 +02:00
jonas@perch.ndb.mysql.com
e57ae66960 Merge perch.ndb.mysql.com:/home/jonas/src/50-bug28804
into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb
2007-08-14 08:10:52 +02:00
stewart@willster.(none)
ac9abcf2d4 Backport Magnus' fix from 5.1
ChangeSet@1.2575, 2007-08-07 19:16:06+02:00, msvensson@pilot.(none) +2 -0
  Bug#26793 mysqld crashes when doing specific query on information_schema
   - Drop the newly created user user1@localhost
   - Cleanup testcase
2007-08-14 15:07:17 +10:00
mskold/marty@mysql.com/linux.site
06b3c9a8b8 bug#30337 DELETE ... WHERE PK IN (..) and AFTER DELETE trigger crashes API node: Added testcase 2007-08-13 15:59:08 +02:00
mskold/marty@mysql.com/linux.site
8dd40ef670 bug#30337 DELETE ... WHERE PK IN (..) and AFTER DELETE trigger crashes API node: Disable multi_read_range if there are after delete/update triggers 2007-08-13 11:36:30 +02:00
jonas@perch.ndb.mysql.com
e01f587dd4 ndb - bug#28804
Handle out of transaction buffer in TC for INDX lookups
2007-08-13 09:22:42 +02:00
gni@dev3-221.dev.cn.tlan
7b15f34766 Merge dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.0/mysql-5.0-ndb-bj
into  dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.0/bug28423
2007-08-08 19:11:19 +08:00
gni/root@dev3-221.dev.cn.tlan
17c3b8d53b Merge dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.0/mysql-5.0-ndb-bj
into  dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.0/bug27683
2007-08-08 18:24:13 +08:00
lzhou/zhl@dev3-63.(none)
cbe2a3c780 BUG#29674 Restore/backup are endian compatible in 5.0 2007-08-07 18:07:57 +00:00
lzhou/zhl@dev3-63.(none)
10a9cca053 Merge lzhou@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb-bj
into  dev3-63.(none):/home/zhl/mysql/mysql-5.0/bug23354
2007-07-30 10:45:46 +00:00
stewart@willster.(none)
3afa32dc2b save the data from mysql.db that we delete (side effect that made read_only fail) 2007-07-27 17:12:53 +10:00
stewart@flamingspork.com[stewart]
f9d977f980 [PATCH] Bug#26793 I_S query crashes in NDB
If ::exteral_lock hadn't been called, we'd have no NDB object,
so need to check/get one here.

It looks like sql_show.cc is the only place that does this....
or at least the other places will be well hidden.

Index: ndb-work/sql/ha_ndbcluster.cc
===================================================================
2007-07-26 20:25:05 +10:00
stewart@flamingspork.com[stewart]
76f7cdba81 [PATCH] BUG#26793 test: mysqld crashes in NDB on I_S query
Reduce case and formalise into something we should be
able to use in mysql-test-run.

Index: ndb-work/mysql-test/t/ndb_bug26793.test
===================================================================
2007-07-26 20:24:54 +10:00
gni@dev3-221.dev.cn.tlan
326d7307e3 BUG#27683 Incorrect description for ndb_restore --print 2007-07-25 14:53:25 +08:00
gni@dev3-221.dev.cn.tlan
ad6defd4ba BUG#28423 cluster to storage engine error code mapping problem 2007-07-25 09:32:28 +08:00
tomas@whalegate.ndb.mysql.com
af75c3eeec Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb-bj
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
2007-07-13 15:53:58 +02:00
jonas@perch.ndb.mysql.com
21da0d2111 Merge perch.ndb.mysql.com:/home/jonas/src/50-work
into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-ndb
2007-07-04 22:42:31 +02:00
jonas@perch.ndb.mysql.com
dfcfd6afc4 ndb - bug#29354 - fix bug in bug fix,
dont assert if 2 LCP's are being run during a node recovery
2007-07-04 22:39:55 +02:00