summaryrefslogtreecommitdiff
path: root/dbug
Commit message (Collapse)AuthorAgeFilesLines
* WL#3817: Simplify string / memory area types and make things more consistent ↵monty@mysql.com/narttu.mysql.fi2007-05-101-17/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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
* Merge debian.(none):/M50/bug14685-5.0joerg@debian.(none)2007-04-231-1/+3
|\ | | | | | | into debian.(none):/M51/bug14685-5.1
| * dbug/dbug_analyze.c : Avoid the unresolved symbol "my_thread_global_init()"joerg@debian.(none)2007-04-231-1/+3
| | | | | | | | | | | | in a build "--without-server". Fix for bug#14685
* | dbug/dbug.c: unused variable removedserg@janus.mylan2007-03-171-1/+0
| | | | | | | | | | | | include/config-win.h: SIZEOF_INT include/my_global.h: win64 fix support-files/Makefile.am: automake magic
* | Merge bk-internal.mysql.com:/home/bk/mysql-5.1serg@janus.mylan2007-02-212-8/+9
|\ \ | | | | | | | | | into janus.mylan:/usr/home/serg/Abk/mysql-5.1
| * | dbug: don't consider double colom (::) a separator -serg@janus.mylan2007-01-282-8/+9
| | | | | | | | | | | | it can be part of a function name (Item::reset)
* | | Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1jani@a88-113-38-195.elisa-laajakaista.fi2007-02-031-27/+27
|\ \ \ | | | | | | | | | | | | into a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1
| * \ \ Merge mysql.com:/home/my/mysql-5.0monty@narttu.mysql.fi2007-01-271-27/+27
| |\ \ \ | | |/ / | |/| / | | |/ | | | into mysql.com:/home/my/mysql-5.1 Merge of 'remove compiler warnings when using -Wshadow'
| | * Merge bk-internal.mysql.com:/home/bk/mysql-5.0monty@mysql.com/narttu.mysql.fi2007-01-221-27/+27
| | |\ | | | | | | | | | | | | into mysql.com:/home/my/mysql-5.0
| | | * Fixed compiler warnings detected by option -Wshadow and -Wunused:monty@mysql.com/narttu.mysql.fi2006-12-151-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removed not used variables and functions - Added #ifdef around code that is not used - Renamed variables and functions to avoid conflicts - Removed some not used arguments Fixed some class/struct warnings in ndb Added define IS_LONGDATA() to simplify code in libmysql.c I did run gcov on the changes and added 'purecov' comments on almost all lines that was not just variable name changes
* | | | Build fix for sunfire100b. This can go when BUG#14420 is fixed.df@kahlann.erinye.com2007-01-272-2/+26
|/ / /
* | | Many files:kent@mysql.com/kent-amd64.(none)2006-12-311-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header Added GPL copyright text my_vle.h, rpl_utility.h, my_vle.c, base64-t.c, rpl_utility.cc: Changed copyright header formatting some plugin_example.c, daemon_example.c: Added "Copyright (C) 2006 MySQL AB" to GPL header
* | | Merge mysql.com:/home/kent/bk/main/mysql-5.0kent@kent-amd64.(none)2006-12-311-1/+1
|\ \ \ | |/ / | | | | | | into mysql.com:/home/kent/bk/main/mysql-5.1
| * | my_strtoll10-x86.s:kent@mysql.com/kent-amd64.(none)2006-12-312-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrected spelling in copyright text Makefile.am: Don't update the files from BitKeeper Many files: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header Many files: Added GPL copyright text Removed files: Docs/Support/colspec-fix.pl Docs/Support/docbook-fixup.pl Docs/Support/docbook-prefix.pl Docs/Support/docbook-split Docs/Support/make-docbook Docs/Support/make-makefile Docs/Support/test-make-manual Docs/Support/test-make-manual-de Docs/Support/xwf
* | | Merge mysql.com:/home/kent/bk/main/mysql-5.0kent@kent-amd64.(none)2006-12-231-2/+2
|\ \ \ | |/ / | | | | | | into mysql.com:/home/kent/bk/main/mysql-5.1
| * | Many files:kent@mysql.com/kent-amd64.(none)2006-12-231-2/+2
| |/ | | | | | | Changed header to GPL version 2 only
* | Added back sql-bench directory, so that one can more easily run benchmarks ↵monty@mysql.com/narttu.mysql.fi2006-11-291-102/+122
| | | | | | | | | | | | | | | | on a server and add new benchmarks for new optimizations Fixed memory leak in _db_set() (Bug#24497 Valgrind warning: get_one_option) Don't call net_clear() on COM_QUIT. This avoids a warning from net_clear() after shutdown: "skipped ## bytes from file" BUG#21428: skipped 9 bytes from file: socket (3)" on "mysqladmin shutdown"
* | Merge mysql.com:/home/my/mysql-5.0monty@nosik.monty.fi2006-11-221-7/+7
|\ \ | |/ | | | | into mysql.com:/home/my/mysql-5.1
| * Remove compiler warningsmonty@mysql.com/nosik.monty.fi2006-11-201-7/+7
| | | | | | | | | | | | | | (Mostly in DBUG_PRINT() and unused arguments) Fixed bug in query cache when used with traceing (--with-debug) Fixed memory leak in mysqldump Removed warnings from mysqltest scripts (replaced -- with #)
* | Merge maint2.mysql.com:/data/localhome/tsmith/bk/mrg50/50tsmith@maint2.mysql.com2006-09-131-1/+2
|\ \ | |/ | | | | into maint2.mysql.com:/data/localhome/tsmith/bk/mrg50/51
| * make dist changes for Cmake buildgeorg@lmy002.wdf.sap.corp2006-09-011-1/+2
| |
| * Additional files for cmake supportgeorg@lmy002.wdf.sap.corp2006-08-311-0/+5
| |
* | Fix build problem for when not compiled with debugging.cmiller@zippy.cornsilk.net2006-09-061-3/+8
| |
* | Merge neptunus.(none):/home/msvensson/mysql/bug21749/my50-bug21749msvensson@neptunus.(none)2006-08-241-4/+1
|\ \ | |/ | | | | into neptunus.(none):/home/msvensson/mysql/bug21749/my51-bug21749
| * Cset exclude: msvensson@neptunus.(none)|ChangeSet|20060612110740|13873msvensson@neptunus.(none)2006-08-241-4/+1
| |
* | Windows build fix: declare _db_set_ before it's used.kostja@bodhi.local2006-08-141-51/+50
| |
* | Merge bodhi.local:/opt/local/work/tmp_mergekostja@bodhi.local2006-08-121-1/+4
|\ \ | |/ | | | | into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge
| * Bug#19517 No simple way to detect wether server was compiled with libdbugmsvensson@neptunus.(none)2006-06-121-1/+4
| | | | | | | | - Define DBUG_ON and DBUG_OFF in config.h
* | atomic ops:serg@serg.mylan2006-06-171-1/+1
| | | | | | | | | | my_atomic_XX_t -> intXX, no implicit locking anymore simplified framework, support for requested cleanups
* | After-merge fixes.knielsen@mysql.com2006-05-171-8/+14
| |
* | Merge mysql.com:/usr/local/mysql/mysql-5.0-vgfixknielsen@mysql.com2006-05-161-13/+65
|\ \ | |/ | | | | into mysql.com:/usr/local/mysql/tmp-5.1
| * Fix two Valgrind memory leak warnings.knielsen@mysql.com2006-05-151-16/+68
| |
* | Rename cmakelists.txt -> CMakeLists.txtmsvensson@neptunus.(none)2006-05-121-1/+1
| |
* | performing a set of bk mv on each CMakeLists.txt file to try and restore the ↵reggie@big_geek.2006-05-111-0/+0
| | | | | | | | | | | | mixed case filenames since this seems to be required with Cmake 2.4 beta 1. This is being pushed to a private tree and tested before being sent to the mainline.
* | Final patch to remove the last of the OS2 support. brian@zim.(none)2006-04-151-1/+1
| |
* | Add missing files for CMake build.knielsen@mysql.com2006-03-271-1/+1
| |
* | Moved cmake scripts into the proper directoriesReggie@xgeek.2006-03-151-0/+5
| |
* | Fix an const char->char conversion error.konstantin@mysql.com2006-02-231-1/+1
| |
* | mysqlimport.c:kent@mysql.com2006-02-181-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle case where there is no snprintf() libmysql.vcproj, mysqlclient.vcproj: Added __WIN__ symbol, needed when compiling dbug.c dbug.vcproj: Changed __WIN32__ to __WIN__ dbug.c: Added Windows specific code to handle TIMESTAMP_ON log line format make_win_src_distribution.sh: Copy plugin directory recursively dbug.vcproj: Define __WIN__ for all targets
* | fix 'make dist'serg@serg.mylan2006-02-151-1/+1
| |
* | post-merge fixes for dbugserg@serg.mylan2006-02-151-0/+3
| |
* | dbug changes:serg@serg.mylan2006-02-144-1406/+1546
|/ | | | | | | | | | | | | | 1. dbug state is now local to a thread 2. new macros: DBUG_EXPLAIN, DBUG_EXPLAIN_INITIAL, DBUG_SET, DBUG_SET_INITIAL, DBUG_EVALUATE, DBUG_EVALUATE_IF 3. macros are do{}while(0) wrapped 4. incremental modifications to the dbug state (e.g. "+d,info:-t") 5. dbug code cleanup, style fixes 6. _db_on_ and DEBUGGER_ON/OFF removed 7. rest of MySQL code fixed because of 3 (missing ;) and 6 8. dbug manual updated 9. server variable @@debug (global and local) to control dbug from SQL! a. -#T to print timestamps in the log
* Several fixes revelaled by Intel compiler.jani@a193-229-222-105.elisa-laajakaista.fi2005-09-231-0/+1
|
* Fix build using --without-server. (Bug #11680)jimw@mysql.com2005-08-231-0/+2
|
* Mergekent@mysql.com2005-07-061-1/+1
|\
| * Makefile.am:kent@mysql.com2005-07-051-1/+2
| | | | | | | | | | Added -I$(top_builddir)/include for searching generated header files, when builddir != srcdir
* | Removed support for RAID, mit-threads, and MySQL FS (really, if someone ↵brian@zim.(none)2005-03-161-1/+1
| | | | | | | | wants this feature look at a web-dav hookup).
* | fixed automake problem in dbug/Makefile.amserg@serg.mylan2005-01-281-3/+1
| |
* | After merge fixesmonty@mysql.com2004-12-311-10/+12
| |
* | Add 0x before pointers (to help with debugging)monty@mysql.com2004-12-181-1/+1
| | | | | | | | | | | | | | | | Add support for VARCHAR with 1 or 2 length bytes Enable VARCHAR packing in MyISAM files (previous patch didn't pack data properly) Give error if we got problems in temporary tables during a SELECT Don't use new table generated by ALTER TABLE if index generation fails Fixed wrong call by range_end() (Could cause an ASSERT in debug mode)