Commit graph

493 commits

Author SHA1 Message Date
monty@hundin.mysql.fi
5773b6504a Fixed bug in blocking handling when compiling with OPENSSL (caused hangup in client code)
Fixed bug in SELECT DISTINCT ... ORDER BY not-used-column.
Fixed bug in pthread_mutex_trylock with HPUX 11.0
2002-08-17 00:35:51 +03:00
monty@hundin.mysql.fi
65334e1c58 Fix for HPUX 11 and pthread_mutex_lock 2002-08-16 16:50:57 +03:00
monty@hundin.mysql.fi
5ff30464a6 merge with 3.23.53
New fix for pthread_mutex_trylock for HPUX 10.20
2002-08-16 14:41:22 +03:00
monty@hundin.mysql.fi
a0e9e22320 Fixed typo so that ulonglong are properly converted to double on AIX with gcc 3.1 2002-08-16 12:50:21 +03:00
bar@bar.mysql.r18.ru
34d4c4f462 Some speed improvements 2002-08-15 16:42:54 +05:00
bar@bar.mysql.r18.ru
f43f8f9dcf More readable output 2002-08-14 20:48:39 +05:00
monty@work.mysql.com
f0a33cd947 Added missing undef that caused infinite recursion on HPUX 2002-08-13 23:46:10 +02:00
heikki@hundin.mysql.fi
dea34642bd my_pthread.c:
In HP-UX-10.20 my_pthread_mutex_trylock erroneously returned 0 also in the case where the mutex was not acquired
2002-08-14 00:41:33 +03:00
monty@work.mysql.com
b495971044 Removed not needed comment (to keep aligned with the rest of the code) 2002-08-13 23:41:32 +02:00
heikki@hundin.mysql.fi
b546212a16 my_pthread.c:
Fix an infinite recursion in my_pthread_mutex_trylock in HP-UX-10.20; the same bug is in the 4.0 tree
2002-08-13 23:33:51 +03:00
monty@hundin.mysql.fi
3ef9d44edc merge with 3.23.52 2002-08-12 04:04:43 +03:00
monty@hundin.mysql.fi
c99c1fd384 Changed IF(expr, column, NULL) to take type from column
Fixed some windows portability problems and removed some compiler warnings
 Cleaned up QUOTE() function and fixed bug in \0 and \Z handling.
2002-08-12 03:33:46 +03:00
monty@hundin.mysql.fi
b779b63862 Fixed problem with BIGINT and shutdown on AIX
Moved IF(test,column,NULL) code to 4.0
Changed mysys_priv.h to include my_pthread.h or my_no_pthread.h.
Removed some CR's in os2 files.
2002-08-12 03:28:02 +03:00
peter@mysql.com
e33ac1e3bd Some comments added to function 2002-08-08 19:34:15 +04:00
peter@mysql.com
2440182b1e Merge mysql.com:/home/pz/mysql/mysql-4.0-root
into mysql.com:/home/pz/mysql/mysql-4.0
2002-08-08 18:21:13 +04:00
monty@hundin.mysql.fi
8be1cdeb89 merge 2002-08-08 12:05:18 +03:00
peter@mysql.com
edf65f0143 Merge mysql.com:/home/pz/mysql/mysql-4.0-root
into mysql.com:/home/pz/mysql/mysql-4.0
2002-08-08 12:43:17 +04:00
monty@mashka.mysql.fi
1bb7665a9c merge 2002-08-08 03:29:36 +03:00
monty@hundin.mysql.fi
a31406e34e Fix for Intel compiler (ecc)
Minor cleanups to other patches.
Make --temp-pool default
2002-08-08 03:14:44 +03:00
monty@mashka.mysql.fi
2c4fa340cc Lots of code fixes to the replication code (especially the binary logging and index log file handling)
Fixed bugs in my last changeset that made MySQL hard to compile.
Added mutex around some data that could cause table cache corruptions when using OPTIMIZE TABLE / REPAIR TABLE or automatic repair of MyISAM tables.
Added mutex around some data in the slave start/stop code that could cause THD linked list corruptions
Extended my_chsize() to allow one to specify a filler character.
Extend vio_blocking to return the old state (This made some usage of this function much simpler)
Added testing for some functions that they caller have got the required mutexes before calling the function.
Use setrlimit() to ensure that we can write core file if one specifies --core-file.
Added --slave-compressed-protocol
Made 2 the minimum length for ft_min_word_len
Added variables foreign_key_checks & unique_checks.
Less logging from replication code (if not started with --log-warnings)
Changed that SHOW INNODB STATUS requre the SUPER privilege
More DBUG statements and a lot of new code comments
2002-08-08 03:12:02 +03:00
peter@mysql.com
21cb8e76df Fix bug of running the queries with no selected database while running with --lower_case_table_names 2002-08-07 19:26:41 +04:00
monty@hundin.mysql.fi
842e8fca83 Backported pthread_mutex_trylock code from MySQL 4.0 to fix problem on HPUX.
Removed Heikki's patch for handling this.
2002-08-06 17:15:51 +03:00
bar@bar.udmsearch.izhnet.ru
5cf0e3de31 Merge abarkov@work.mysql.com:/home/bk/mysql-4.1
into bar.udmsearch.izhnet.ru:/usr/home/bar/mysql-4.1.dyn
2002-08-06 15:49:26 +05:00
bar@bar.udmsearch.izhnet.ru
7529d57a75 New file to generate a html page to review a charset 2002-08-06 15:47:52 +05:00
serg@sergbook.mysql.com
edb3700932 Merge work:/home/bk/mysql-4.1
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.1
2002-08-05 10:21:44 +02:00
serg@sergbook.mysql.com
f1fb3649c5 make SEARCH_PREFIX to work with complex (use_strcoll) charsets 2002-08-05 09:41:48 +02:00
bar@bar.udmsearch.izhnet.ru
3be1219f72 Move operation to logically better place 2002-07-31 17:34:27 +05:00
bar@bar.udmsearch.izhnet.ru
ee177d073d Some more speedup in charsets handling 2002-07-31 13:25:37 +05:00
bar@bar.udmsearch.izhnet.ru
e263d118d2 Removed unused strucure
Some fixes and improvements
2002-07-30 17:12:51 +05:00
bar@bar.udmsearch.izhnet.ru
6340c79c05 Renamed some charset related constant
New fields in CHARSET_INFO for more nice SHOW CHARACTER SET
Dynamic charsets are now handled in faster way
SHOW CHARACTER SET now displays not only compiled charsets but dynamic charsets too
2002-07-30 14:02:29 +05:00
bar@bar.udmsearch.izhnet.ru
c9cc3cceac move _print_charset to proper place 2002-07-30 11:03:08 +05:00
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
peter@mysql.com
c070c8e62d Merge mysql.com:/home/pz/mysql/mysql-4.0-root
into mysql.com:/home/pz/mysql/mysql-4.0
2002-07-25 09:38:06 +04:00
monty@mashka.mysql.fi
4233d3a3d4 merge 2002-07-23 20:39:36 +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
peter@mysql.com
6579112ce2 Possibility to weaken AES key as Mark asked 2002-07-23 19:29:06 +04:00
salle@geopard.online.bg
b472f401b1 Some
C++ comments cleanup
2002-07-17 15:17:20 +03:00
lenz@mysql.com
3258f23d99 - Updated OS/2 port with files provided by Yuri Dario <mc6530@mclink.it>
from TeamOS/2 Italy
- removed some obsolete files on Yuri's request
- Added missing os2 related files outside the os2 subdirectory
  to the distribution
2002-07-15 18:26:11 +02:00
serg@sergbook.mysql.com
53b88c2080 Merge work:/home/bk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
2002-07-14 21:48:41 +02:00
serg@sergbook.mysql.com
2fe3fec4e4 parallel repair needs rec_buff local for thread !!! 2002-07-14 21:47:46 +02:00
jani@rhols221.adsl.netsonic.fi
6a95858ca0 Merge work:/home/bk/mysql-4.0/
into rhols221.adsl.netsonic.fi:/home/my/bk/mysql-4.0-new
2002-07-10 20:19:36 +03:00
salle@geopard.(none)
58f442152b Rewrite function comments 2002-07-09 18:59:52 +03:00
lenz@mysql.com
04888e4675 Added a compile fix for AIX to include/my_sys.h
Corrected some comments that were using C++-style instead of C-style
2002-07-03 18:45:38 +02:00
monty@hundin.mysql.fi
6cb77c6b3e Portability fixes.
Don't free memory from InnoDB at exit (as this may be done before other threads are finnished)
2002-07-01 11:19:17 +03:00
jani@rhols221.adsl.netsonic.fi
b3d57979c7 Merge work:/home/bk/mysql-4.0/
into rhols221.adsl.netsonic.fi:/home/my/bk/mysql-4.0-new
2002-07-01 10:14:55 +03:00
serg@serg.mysql.com
07bd261c1b Merge work:/home/bk/mysql-4.0
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.0
2002-06-30 23:35:59 +00:00
serg@serg.mysql.com
f3e1fb4d4c post-merge fix 2002-06-30 23:29:25 +00:00
serg@serg.mysql.com
0a1de562a7 merged 2002-06-30 16:14:48 +00:00
monty@hundin.mysql.fi
f87efa928b Update for running gcc 3.x (mainly on HPUX)
Portability fixes for HPUX
Rename of CHECK_LOCK to IS_FREE_LOCK
Apply lower_case_table_names also to databases
Cleanup of describe code
Don't allow \ in database names
2002-06-30 18:57:21 +03:00
serg@serg.mysql.com
53ac59b913 "myisamchk -p" for parallel recover works (no extensive testing though) 2002-06-30 14:17:29 +00: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
66f86faafd Portability fix (for HPUX) 2002-06-29 01:00:56 +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
jani@rhols221.adsl.netsonic.fi
7cad1f9313 Added interface for first set of dynamic variables. 2002-06-28 19:30:09 +03:00
monty@hundin.mysql.fi
33f84cf8fe Fixed bug in REPAIR table.
Portability fix in safemalloc.c
2002-06-28 15:06:04 +03:00
monty@hundin.mysql.fi
ade20c5b19 Indentation cleanup & new comments 2002-06-28 09:18:23 +03:00
monty@hundin.mysql.fi
ddc8c5403e Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0 2002-06-27 14:16:44 +03:00
monty@hundin.mysql.fi
6b36860c9c Made lock_io_cache() and unlock_io_cache() as functions. 2002-06-27 14:15:55 +03:00
bell@sanja.is.com.ua
347ca5ea4e improvement in root memory allocator 2002-06-27 12:26:51 +03:00
monty@hundin.mysql.fi
5fa5172b64 merge 2002-06-27 11:35:50 +03:00
monty@hundin.mysql.fi
8a2daeac77 Removed mysql_ssl_clear()
Added statistics information for alarms (for bug tracking)
Don't store "incomplete" in the xxx.cfg file if we are not using --restart. (Crash-me)
Enlarged STACK_BUF_ALLOC becasue of failed crash-me test
Aded new script mysql_tableinfo to make a system directory.
2002-06-27 11:27:04 +03:00
serg@sergbook.mysql.com
a0cfa78970 post-merge fix 2002-06-24 22:22:23 +02:00
peter@linux.local
1d074b3d16 Fix some warning issued by Windows Compiler 2002-06-23 22:50:22 +04:00
serg@serg.mysql.com
f503efea62 Merge work:/home/bk/mysql-4.0
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.0
2002-06-21 19:17:54 +00:00
monty@hundin.mysql.fi
6ccf4e50a2 Fixes for compiling distribution with MIT-threads 2002-06-20 23:26:39 +03:00
serg@serg.mysql.com
099d78d4cb resolving 2002-06-20 00:55:06 +00:00
serg@serg.mysql.com
5c83ae3fca multithreaded repair-by-sort code
parallel read access to IO_CACHE
2002-06-19 23:54:45 +00:00
monty@hundin.mysql.fi
0d8e13979d Made keyread (key scanning) a key specific attribute.
This avoids using fulltext keys for table scanning.
This also reverts Sinisa's original fix for this problem.
2002-06-19 00:22:30 +03:00
monty@mashka.mysql.fi
8d75ff64e1 Portability fix for HPUX 2002-06-17 09:56:27 +03:00
monty@hundin.mysql.fi
6d69e1205f Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0 2002-06-17 09:46:38 +03:00
monty@mashka.mysql.fi
fc52abc50f Cleanup of checking of user resources
Added missing checking of no_keyread
2002-06-16 17:06:12 +03:00
peter@linux.local
f85a002c68 Merge 2002-06-14 15:24:22 +04:00
peter@linux.local
d505803728 This is just code style/minor optimizations cleanup changeset 2002-06-14 15:14:30 +04: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
bar@gw.udmsearch.izhnet.ru
ac0dfc7774 test_charset.c:
fix: use my_free() instead of free()
2002-06-11 21:04:14 +05:00
peter@linux.local
7e80b05884 Merge linux.local:/data/mysql-4.0-root into linux.local:/data/mysql-4.0 2002-06-11 13:56:58 +04:00
peter@linux.local
89b161d05d This changeset is mostly new version of previous commit modified according
to Monty's code style and optimization comments
2002-06-11 13:37:48 +04: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
jani@rhols221.adsl.netsonic.fi
c038efd877 Some enhancements in my_getopt. Made code more readable and better
optimized in some places.
2002-06-09 23:27:07 +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
ab1a273198 Merge work:/my/mysql-4.1 into hundin.mysql.fi:/my/mysql-4.1 2002-06-04 11:39:33 +03:00
monty@hundin.mysql.fi
fc8490a111 merge with 4.0 to get last fixes to last merge 2002-06-04 08:29:08 +03:00
monty@hundin.mysql.fi
8cba72fe1f Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0 2002-06-04 00:41:32 +03:00
monty@hundin.mysql.fi
4b1836ee36 Enable LOAD DATA LOCAL INFILE in mysql_test
Added syntax for column comments (for compability with 4.1)
Fix of ALTER TABLE RENAME
2002-06-04 00:40:27 +03:00
monty@hundin.mysql.fi
f0b28da6f9 merge with 4.0 2002-06-03 12:59:31 +03:00
jani@rhols221.adsl.netsonic.fi
3e989a9049 Fixed two bugs in my_getopt. 2002-06-03 03:02:32 +03:00
monty@hundin.mysql.fi
544f95c451 merge with 3.23 2002-06-02 20:46:03 +03:00
bar@gw.udmsearch.izhnet.ru
660844acd6 Changed 003F -> 0000 for undefinite characters in charset.conf
Charset convertion FROM dynamic charset is now working too
Allow dynamic charsets in CONVERT()
2002-06-02 21:32:02 +05:00
bar@gw.udmsearch.izhnet.ru
24f28f3bf0 Added filling of unicode mapping arrays during charset.conf loading
All charset.conf files were extended to supply unicode mapping array
CONVERT() now uses more common order of arguments: CONVERT(expr,charset_from,charset_to)
Dynamic charset can be used as CONVERT() argument
2002-05-31 21:04:47 +05:00
jani@dsl-jkl1657.dial.inet.fi
0b5e2d9896 Fixed a bug in my_getopt. 2002-05-31 16:23:36 +03:00
monty@hundin.mysql.fi
e2a116411e Portability fixes for SCO and HPUX
Change TRUNCATE(number) to truncate towards zero for negative numbers
Fix NULL handling for DESCRIBE table_name
2002-05-31 15:22:38 +03:00
jani@hynda.(none)
c961494444 Added useful exit error code for programs using my_getopt in case
of an error in option handling. This can sometimes be useful in
scripts.

Changed some exit code names and corresponding numbers.

Fixed a bug in mysqld.cc, in replication related options.

Added a global flag in my_getopt, which can be set by any program
that is using my_getopt, which tells whether the client should
print the error message itself, or whether my_getopt should do it.
The default is that my_getopt will print the error messages.
2002-05-29 15:07:30 +03:00
ram@gw.udmsearch.izhnet.ru
479b3b3f03 Removed unnecessary key search in the hp_rb_write_key() function 2002-05-28 20:46:35 +05:00
Sinisa@sinisa.nasamreza.org
db8cf95a63 Merge sinisa@work.mysql.com:/home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/hdc/Sinisa/mysql-4.0
2002-05-28 13:40:39 +03:00
Sinisa@sinisa.nasamreza.org
07fd76a332 Fixing a small bug in new code for cond_timedwait fix 2002-05-28 13:36:51 +03:00
monty@hundin.mysql.fi
7e0358e509 fixed tests after merge 2002-05-28 10:21:56 +03:00
monty@hundin.mysql.fi
bbebc75163 merge with 3.23.51 2002-05-27 23:52:21 +03:00
monty@hundin.mysql.fi
6d0e43c73b Renamed stripp_sp -> strip_sp
Remove end space from ENUM and SET strings
2002-05-27 23:21:49 +03:00
monty@hundin.mysql.fi
07886933b8 Split raid C function to separate file to make things more portable.
Fixed some portability things in my_gethostbyname_r
Portability fix for type_decimal.test
2002-05-27 10:02:00 +03:00
jani@rhols221.arenanet.fi
16e3b892a6 Changed ft_dump, ft_eval, ft_test1, mi_test1, myisampack, gen_lex_hash,
mysqlmanager from using GNU getopt to use my_getopt.

Changed some files that just included old getopt.h to include
my_getopt.h now.

Fixed a bug in my_print_help() in my_getopt.c.

Made better documentation for option -G in mysql client.
2002-05-24 14:06:58 +03:00