Commit graph

1609 commits

Author SHA1 Message Date
kostja@vajra.(none)
e4a3189c4f Comment fix. 2007-05-16 17:19:59 +04:00
tomas@whalegate.ndb.mysql.com
277a5a50b5 Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-05-15 13:04:49 +02:00
tomas@whalegate.ndb.mysql.com
84f24ce0f8 Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-05-15 12:08:09 +02:00
tomas@whalegate.ndb.mysql.com
db3fcd8a89 Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-05-15 12:05:20 +02:00
tomas@whalegate.ndb.mysql.com
f527479f8c Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-05-15 09:54:42 +02:00
jonas@perch.ndb.mysql.com
7e8cc53abe ndb - bug#24631
add Dbdict::restartDropObj*
2007-05-15 09:08:16 +02:00
tomas@whalegate.ndb.mysql.com
60e28cc9aa Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-05-15 08:36:21 +02:00
jonas@perch.ndb.mysql.com
836597bbc3 Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2007-05-14 10:39:46 +02:00
jonas@perch.ndb.mysql.com
1305016bdc ndb - bug#28348
remove LCP files when dropping table
2007-05-14 10:34:21 +02:00
monty@mysql.com/narttu.mysql.fi
088e2395f1 WL#3817: Simplify string / memory area types and make things more consistent (first part)
The following type conversions was done:

- Changed byte to uchar
- Changed gptr to uchar*
- Change my_string to char *
- Change my_size_t to size_t
- Change size_s to size_t

Removed declaration of byte, gptr, my_string, my_size_t and size_s. 

Following function parameter changes was done:
- All string functions in mysys/strings was changed to use size_t
  instead of uint for string lengths.
- All read()/write() functions changed to use size_t (including vio).
- All protocoll functions changed to use size_t instead of uint
- Functions that used a pointer to a string length was changed to use size_t*
- Changed malloc(), free() and related functions from using gptr to use void *
  as this requires fewer casts in the code and is more in line with how the
  standard functions work.
- Added extra length argument to dirname_part() to return the length of the
  created string.
- Changed (at least) following functions to take uchar* as argument:
  - db_dump()
  - my_net_write()
  - net_write_command()
  - net_store_data()
  - DBUG_DUMP()
  - decimal2bin() & bin2decimal()
- Changed my_compress() and my_uncompress() to use size_t. Changed one
  argument to my_uncompress() from a pointer to a value as we only return
  one value (makes function easier to use).
- Changed type of 'pack_data' argument to packfrm() to avoid casts.
- Changed in readfrm() and writefrom(), ha_discover and handler::discover()
  the type for argument 'frmdata' to uchar** to avoid casts.
- Changed most Field functions to use uchar* instead of char* (reduced a lot of
  casts).
- Changed field->val_xxx(xxx, new_ptr) to take const pointers.

Other changes:
- Removed a lot of not needed casts
- Added a few new cast required by other changes
- Added some cast to my_multi_malloc() arguments for safety (as string lengths
  needs to be uint, not size_t).
- Fixed all calls to hash-get-key functions to use size_t*. (Needed to be done
  explicitely as this conflict was often hided by casting the function to
  hash_get_key).
- Changed some buffers to memory regions to uchar* to avoid casts.
- Changed some string lengths from uint to size_t.
- Changed field->ptr to be uchar* instead of char*. This allowed us to
  get rid of a lot of casts.
- Some changes from true -> TRUE, false -> FALSE, unsigned char -> uchar
- Include zlib.h in some files as we needed declaration of crc32()
- Changed MY_FILE_ERROR to be (size_t) -1.
- Changed many variables to hold the result of my_read() / my_write() to be
  size_t. This was needed to properly detect errors (which are
  returned as (size_t) -1).
- Removed some very old VMS code
- Changed packfrm()/unpackfrm() to not be depending on uint size
  (portability fix)
- Removed windows specific code to restore cursor position as this
  causes slowdown on windows and we should not mix read() and pread()
  calls anyway as this is not thread safe. Updated function comment to
  reflect this. Changed function that depended on original behavior of
  my_pwrite() to itself restore the cursor position (one such case).
- Added some missing checking of return value of malloc().
- Changed definition of MOD_PAD_CHAR_TO_FULL_LENGTH to avoid 'long' overflow.
- Changed type of table_def::m_size from my_size_t to ulong to reflect that
  m_size is the number of elements in the array, not a string/memory
  length.
- Moved THD::max_row_length() to table.cc (as it's not depending on THD).
  Inlined max_row_length_blob() into this function.
- More function comments
- Fixed some compiler warnings when compiled without partitions.
- Removed setting of LEX_STRING() arguments in declaration (portability fix).
- Some trivial indentation/variable name changes.
- Some trivial code simplifications:
  - Replaced some calls to alloc_root + memcpy to use
    strmake_root()/strdup_root().
  - Changed some calls from memdup() to strmake() (Safety fix)
  - Simpler loops in client-simple.c
2007-05-10 12:59:39 +03:00
mikael@dator3.(none)
80bd7f4ec6 Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
into  dator3.(none):/home/mikael/mysql_clones/rt-5.1
2007-05-10 09:08:34 +02:00
tomas@whalegate.ndb.mysql.com
19a2814f47 Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-opt
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-05-10 08:06:09 +02:00
mskold/marty@mysql.com/linux.site
11e98f4126 Ndb.hpp, Ndb.cpp, ha_ndbcluster.cc:
Bug#26342 auto_increment_increment AND auto_increment_offset REALLY REALLY anger NDB cluster, implemented support for auto_increment_offset and auto_increment
2007-05-09 17:09:06 +02:00
tomas@whalegate.ndb.mysql.com
a84d2971fc Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-05-09 15:04:45 +02:00
tomas@whalegate.ndb.mysql.com
73306167ca Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-05-09 12:52:23 +02:00
jonas@perch.ndb.mysql.com
0f29fa28af Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2007-05-08 15:10:18 +02:00
jonas@perch.ndb.mysql.com
de3070265d ndb - bug#20535
set null bits on delete+insert
2007-05-08 14:59:57 +02:00
mikron@mikael-ronstr-ms-dator.local
927228a99a Merge mikael@192.168.0.203:/home/mikael/mysql_clones/rt-5.1
into  mikael-ronstr-ms-dator.local:/Users/mikron/mysql_clones/mysql-5.1-ndb
2007-05-08 10:15:50 +02:00
gni@dev3-221.dev.cn.tlan
305d0eaf02 Merge dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.1/mysql-5.1-new-ndb-bj
into  dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.1/mysql-5.1-new-ndb
2007-05-08 09:52:27 +08:00
acurtis/antony@ltamd64.xiphis.org
b8301263f3 Merge xiphis.org:/home/antony/work2/mysql-5.1-engines
into  xiphis.org:/home/antony/work2/mysql-5.1-merge
2007-05-07 12:32:09 -07:00
mikron@mikael-ronstr-ms-dator.local
f1a7d7dded Jamming 2007-05-07 16:07:04 +02:00
jonas@perch.ndb.mysql.com
245e6d1740 Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2007-05-07 16:05:31 +02:00
jonas@perch.ndb.mysql.com
34c0b16403 ndb - bug#27942
Increase size of memory channel
2007-05-07 16:02:57 +02:00
mikron@mikael-ronstr-ms-dator.local
8a83924eb6 Merge mikael-ronstr-ms-dator.local:/Users/mikron/mysql_clones/mysql-5.0-ndb
into  mikael-ronstr-ms-dator.local:/Users/mikron/mysql_clones/mysql-5.1-ndb
2007-05-07 15:39:36 +02:00
jonas@perch.ndb.mysql.com
08c906793e Fix compile error with some compilers 2007-05-07 14:53:55 +02:00
jonas@perch.ndb.mysql.com
5f9d1cf77c ndb - bug#28276
Fix DeleteRead in multi-operation
    Dont use setup_read, as it will (correctly) find that tuple is deleted
2007-05-07 13:48:27 +02:00
acurtis/antony@ltamd64.xiphis.org
a4dbc0990c Merge xiphis.org:/home/antony/work2/mysql-5.1-engines
into  xiphis.org:/home/antony/work2/mysql-5.1-engines.merge
2007-05-04 23:35:14 -07:00
tomas@whalegate.ndb.mysql.com
76bedc6a03 bugfix in checksum with force varpart 2007-05-04 12:19:06 +02:00
msvensson@pilot.blaudden
a8125f359a Add atrt.hpp to EXTRA_DIST 2007-05-02 13:02:07 +02:00
mskold/marty@linux.site
3fa2a53e67 Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1-ndb
into  mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
2007-05-02 12:48:35 +02:00
jonas@perch.ndb.mysql.com
fd797249ca ndb - dynarr256
fix release iterator
2007-05-01 20:48:39 +02:00
tomas@whalegate.ndb.mysql.com
1e06586c90 Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-04-30 16:31:08 +02:00
mskold/marty@linux.site
27ac6c19af Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
into  mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
2007-04-30 14:21:29 +02:00
jonas@perch.ndb.mysql.com
15cfd0fd03 Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2007-04-30 13:00:36 +02:00
jonas@perch.ndb.mysql.com
5db64df3dc Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2007-04-30 12:57:20 +02:00
jonas@perch.ndb.mysql.com
6559c77022 ndb - bug#28161
fix commit triggers with DD but not using DD
2007-04-30 12:56:16 +02:00
tomas@whalegate.ndb.mysql.com
598a60285f ndb_restore to set correct value force varpart
+ some tests
2007-04-30 11:43:50 +02:00
jonas@perch.ndb.mysql.com
636a380efa Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2007-04-30 09:29:43 +02:00
jonas@perch.ndb.mysql.com
b5339a8059 ndb - force var part, part III 2007-04-30 09:02:52 +02:00
jonas@perch.ndb.mysql.com
7de7f8c1ff Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-telco-gca
into  perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
2007-04-30 07:11:56 +02:00
holyfoot/hf@mysql.com/hfmain.(none)
2fe860e84b 'no DBUG_RETURN' warning fixed 2007-04-30 01:06:16 +05:00
tomas@whalegate.ndb.mysql.com
870c2a5b3f Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-04-27 21:01:23 +02:00
tomas@whalegate.ndb.mysql.com
d424f0d890 ndb: missing init and copy of m_force_var_part 2007-04-27 21:00:21 +02:00
istruewing@chilla.local
e327818c28 Merge bk-internal.mysql.com:/home/bk/mysql-5.1-engines
into  chilla.local:/home/mydev/mysql-5.1-wl2936-two
2007-04-27 19:09:39 +02:00
tomas@whalegate.ndb.mysql.com
10be9bf531 Bug#24951, Data nodes died(lgman) during creating tables
- reverting wrong part in patch
2007-04-27 13:50:33 +02:00
tomas@whalegate.ndb.mysql.com
f53e1929a2 Bug#24560 Data nodes died(lgman) if undo_buffer_size from logfile group has small value 2007-04-27 12:26:13 +02:00
tomas@whalegate.ndb.mysql.com
cfd4183e5e Bug#24951, Data nodes died(lgman) during creating tables 2007-04-27 12:23:40 +02:00
tomas@whalegate.ndb.mysql.com
9b41ce38ef Bug #25741 Unable to allocate node id during restarting data node
- add additional sleep so that we don't get 100% cpu usage retrying saomething that can take some time before succeeding
2007-04-27 12:11:29 +02:00
tomas@whalegate.ndb.mysql.com
c1cdd288b9 Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-04-27 11:45:03 +02:00
tomas@whalegate.ndb.mysql.com
2061324ed1 Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-telco-gca
into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
2007-04-26 22:51:38 +02:00