summaryrefslogtreecommitdiff
path: root/libmysqld
Commit message (Collapse)AuthorAgeFilesLines
* merging.Alexey Botchkov2009-02-241-0/+9
|\
| * Bug#39289 libmysqld.a calls exit() upon error Alexey Botchkov2008-10-271-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several functions (mostly in mysqld.cc) directly call exit() function in case of errors, which is not a desired behaviour expecially in the embedded-server library. Fixed by making these functions return error sign instead of exiting. per-file comments: include/my_getopt.h Bug#39289 libmysqld.a calls exit() upon error added 'error' retvalue for my_getopt_register_get_addr libmysqld/lib_sql.cc Bug#39289 libmysqld.a calls exit() upon error unireg_clear() function implemented mysys/default.c Bug#39289 libmysqld.a calls exit() upon error error returned instead of exit() call mysys/mf_tempdir.c Bug#39289 libmysqld.a calls exit() upon error free_tmpdir() - fixed so it's not produce crash on uninitialized tmpdir structure mysys/my_getopt.c Bug#39289 libmysqld.a calls exit() upon error error returned instead of exit() call sql/mysql_priv.h Bug#39289 libmysqld.a calls exit() upon error unireg_abort definition fixed for the embedded server sql/mysqld.cc Bug#39289 libmysqld.a calls exit() upon error various functions fixed error returned instead of exit() call
* | Fix merge error, mysqltest.cc should be mysqltest.cMagnus Svensson2008-12-181-1/+1
| |
* | merge 5.1 --> 5.1-rplAlfranio Correia2008-12-133-76/+8
|\ \
| * | Bug#38522: 5 seconds delay when closing application using embedded serverVladislav Vaintroub2008-12-043-135/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem here is that embedded server starts handle_thread manager thread on mysql_library_init() does not stop it on mysql_library_end(). At shutdown, my_thread_global_end() waits for thread count to become 0, but since we did not stop the thread it will give up after 5 seconds. Solution is to move shutdown for handle_manager thread from kill_server() (mysqld specific) to clean_up() that is used by both embedded and mysqld. This patch also contains some refactorings - to avoid duplicate code, start_handle_manager() and stop_handle_manager() functions are introduced. Unused variables are eliminated. handle_manager does not rely on global variable abort_loop anymore to stop (abort_loop is not set for embedded). Note: Specifically on Windows and when using DBUG version of libmysqld, the complete solution requires removing obsolete code my_thread_init() from my_thread_var(). This has a side effect that a DBUG statement after my_thread_end() can cause thread counter to be incremented, and embedded will hang for some seconds. Or worse, my_thread_init() will crash if critical sections have been deleted by the global cleanup routine that runs in a different thread. This patch also fixes and revert prior changes for Bug#38293 "Libmysqld crash in mysql_library_init if language file missing". Root cause of the crash observed in Bug#38293 was bug in my_thread_init() described above
| * | Fix broken link in embedded server (Windows)Vladislav Vaintroub2008-11-211-3/+3
| | |
| * | Bug#38293 Libmysqld crash in mysql_library_init if language file missingAlexey Botchkov2008-11-191-3/+3
| | | | | | | | | | | | additional fix - the 'debug' keyword removed
| * | mergingAlexey Botchkov2008-11-192-3/+63
| |\ \
| | * | Bug#38293 Libmysqld crash in mysql_library_init if language file missingAlexey Botchkov2008-11-192-3/+63
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That's a Win-specific error. When we create libmysqld.dll we have many libraries like mysys, dbug, strings, etc linked into that dll, so the application built upon this library shouldn't link these libraries to itself, rather use those inside the dll. Fixed by redirecting calls into the libmysqld.dll per-file comments: dbug/dbug.c Bug#38293 Libmysqld crash in mysql_library_init if language file missing fake _db_something definitions added include/my_dbug.h Bug#38293 Libmysqld crash in mysql_library_init if language file missing fake _db_something declarations added libmysqld/examples/CMakeLists.txt Bug#38293 Libmysqld crash in mysql_library_init if language file missing superfluous libraries removed from linking libmysqld/libmysqld.def Bug#38293 Libmysqld crash in mysql_library_init if language file missing set of mysys functions added to the export section
| * | Bug#34517 SHOW GLOBAL STATUS does not work properly in embedded server.Alexey Botchkov2008-11-171-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GLOBAL STATUS is calculated by studying the list of threads. In the embedded server threads were not linked to the internal list, so the calculation always returns 0. Fixed by 'linking' the embedded-server threads to the same list per-file comments: libmysqld/lib_sql.cc Bug#34517 SHOW GLOBAL STATUS does not work properly in embedded server. Add newly created 'threads' to the internal thread list. Remove them from the list as they're freed. mysql-test/r/information_schema.result Bug#34517 SHOW GLOBAL STATUS does not work properly in embedded server. test result mysql-test/t/information_schema.test Bug#34517 SHOW GLOBAL STATUS does not work properly in embedded server. test case added
* | Merge 5.1 main -> 5.1-rplHe Zhenxing2008-09-061-0/+3
|\ \ | |/
| * Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains thatMattias Jonsson2008-08-131-0/+3
| | | | | | | | | | | | | | | | partition is corrupt Post push fix an DBUG_ASSERT broke the embedded server, fixed by initializing it in the embedded version of Protocol_text::prepare_for_resend
* | Ad missing ) to CmakeLists.txtMagnus Svensson2008-08-091-1/+1
| |
* | MergeMagnus Svensson2008-08-081-1/+2
|\ \ | |/
| * Fixed build warning on Windows (emb_qcache.cc)Marc Alff2008-07-101-1/+2
| |
* | Bug #38181 Please print more debug info when tests failMagnus Svensson2008-08-042-2/+2
|/
* Bug#37003 Tests sporadically crashes with embedded serverDavi Arnaut2008-06-183-3/+11
| | | | | | | | | | | The problem was that when a embedded linked version of mysqltest crashed there was no way to obtain a stack trace if no core file is available. Another problem is that the embedded version of libmysql was not behaving (crash) the same as the non-embedded with respect to sending commands to a explicitly closed connection. The solution is to generate a mysqltest's stack trace on crash and to enable "reconnect" if the connection handle was explicitly closed so the behavior matches the non-embedded one.
* Merge bk-internal.mysql.com:/home/bk/mysql-5.1kostja@bodhi.(none)2008-05-201-1/+1
|\ | | | | | | into bodhi.(none):/opt/local/work/mysql-5.1-27430
| * Fix compilation warnings (embedded library, Windows build)kostja@bodhi.(none)2008-04-191-2/+2
| |
| * An attempt to fix a link failure on Windows (embedded library).kostja@bodhi.(none)2008-04-191-1/+1
| |
* | fixed the win64 build failuregkodinov/kgeorge@magare.gmz2008-05-131-1/+2
| |
* | Merge bk-internal:/home/bk/mysql-5.1-bugteamgkodinov/kgeorge@magare.gmz2008-05-121-4/+2
|\ \ | | | | | | | | | into magare.gmz:/home/kgeorge/mysql/work/fixes-5.1-bugteam
| * | fixed the win32 make files to compile the fix for bug 35997gkodinov/kgeorge@magare.gmz2008-05-121-4/+2
| | |
| * | Fixed:gkodinov/kgeorge@magare.gmz2008-05-121-1/+1
| | | | | | | | | | | | | | | - a 64 bit compile warning in embedded - disabled the new (and failing tests for Bug#36522
* | | Bug#35997 Event scheduler seems to let the server crash, if it is embedded.thek@adventure.(none)2008-05-121-1/+1
|/ / | | | | | | | | | | | | | | | | SHOW commands fail in embedded mode because schema_table array doesn't correspond to enum_schema_tables. This patch implements a dummy implementation of the abstract fill_table function to be used when the event scheduler (or other core feature) isn't part of the build.
* | Bug#35997 Event scheduler seems to let the server crash, if it is embedded.thek@adventure.(none)2008-05-091-3/+1
| | | | | | | | | | | | The event scheduler was not designed to work in embedded mode. This patch disables and excludes the event scheduler when the server is compiled for embedded build.
* | Use ulonglong to store row count in libmysld Protocol_text::remove_last_row()tsmith@ramayana.hindu.god2008-04-301-1/+1
| | | | | | | | (fix warnings).
* | mysql.spec.sh:kent/mysqldev@mysql.com/production.mysql.com2008-04-021-0/+3
| | | | | | | | | | | | | | | | If excluding Federated, make sure dynamic plugin is not built Makefile.am: Only run cluster test when compiled with cluster lib_sql.cc: Work around for Visual Studio 2003, that lacks vsnprintf() but has _vsnprintf()
* | mysqld.cc:kent/mysqldev@mysql.com/production.mysql.com2008-04-021-1/+1
|/ | | | | | | | | | Corrects build problems embedded on Windows Makefile.am: Install .sym or mysqld-debug if exists query_cache_debug.test, query_cache_debug.result: Set more resonable query cache size (bug#35749) CMakeLists.txt: Added missing stacktrace.c
* Merge trift2.:/MySQL/M51/mysql-5.1joerg@trift2.2008-03-141-0/+11
|\ | | | | | | into trift2.:/MySQL/M51/push-5.1
| * Merge kaamos.(none):/data/src/mysql-5.1kaa@kaamos.(none)2008-03-121-0/+11
| |\ | | | | | | | | | into kaamos.(none):/data/src/opt/mysql-5.1-opt
| | * Merge bk@192.168.21.1:mysql-5.1-optholyfoot/hf@hfmain.(none)2008-02-271-0/+11
| | |\ | | | | | | | | | | | | into mysql.com:/home/hf/work/25097/my51-25097
| | | * mergingholyfoot/hf@mysql.com/hfmain.(none)2008-02-271-1/+2
| | | |
| | | * Merge mysql.com:/home/hf/work/25097/my50-25097holyfoot/hf@hfmain.(none)2008-02-271-0/+10
| | | |\ | | | | | | | | | | | | | | | into mysql.com:/home/hf/work/25097/my51-25097
| | | | * Bug #25097 mysql_server_init fails silently if no errmsg.sys is present.holyfoot/hf@mysql.com/hfmain.(none)2008-02-271-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was no way to return an error from the client library if no MYSQL connections was established. So here i added variables to store that king of errors and made functions like mysql_error(NULL) to return these.
| | | | * Merge mysql.com:/home/gluh/MySQL/Merge/5.0gluh@eagle.(none)2007-12-131-0/+2
| | | | |\ | | | | | | | | | | | | | | | | | | into mysql.com:/home/gluh/MySQL/Merge/5.0-opt
* | | | | \ Merge bk-internal.mysql.com:/home/bk/mysql-5.1-buildjperkin/jonathan@chorlton.adsl.perkin.org.uk2008-03-061-1/+2
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | into chorlton.adsl.perkin.org.uk:/Users/jonathan/mysql/bk/build/5.1
| * | | | | Use pkglibdir to simplify pkgplugindir, and fix the path in ajperkin/jonathan@chorlton.adsl.perkin.org.uk2008-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | couple of Makefiles. Continuation of the fix for bug#31736.
| * | | | | Add new pkgplugindir handling to seperate plugins from libraries,jperkin/jonathan@chorlton.adsl.perkin.org.uk2007-12-191-1/+2
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | and allow override for binary distributions. Extend mysql_config to print compiled-in plugin location for third-party plugins to use. Resolves bug#31736.
* | | | | Bug#34655 Compile errordavi@mysql.com/endora.local2008-02-282-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Rename client_last_error to last_error and client_last_errno to last_errno to not break connectors which use the internal net structure for error handling.
* | | | | Merge mysql.com:/home/kent/bk/maria/mysql-maria-gcakent@kent-amd64.(none)2008-02-181-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | into mysql.com:/home/kent/bk/build/mysql-5.1-build
| * | | | | CMakeLists.txt:kent@mysql.com/kent-amd64.(none)2008-02-181-1/+1
| | |/ / / | |/| | | | | | | | | | | | | Missing "sql_profile.cc" was added
* | | | | Merge pilot.mysql.com:/data/msvensson/mysql/bug32044/my51-bug32044msvensson@pilot.mysql.com2008-02-061-0/+3
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | into pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-build
| * | | | Bug#32044 some of the tests (backup, drop, query_cache, etc) will timeout on ↵msvensson@pilot.mysql.com2007-11-021-0/+3
| | | | | | | | | | | | | | | | | | | | Windows
* | | | | Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maintserg@janus.mylan2007-12-205-75/+142
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | into janus.mylan:/usr/home/serg/Abk/mysql-5.1
| * | | | Merge station.:/mnt/raid/alik/MySQL/devel/5.1anozdrin/alik@station.2007-12-144-41/+79
| |\ \ \ \ | | | | | | | | | | | | | | | | | | into station.:/mnt/raid/alik/MySQL/devel/5.1-rt
| | * \ \ \ Merge mysql.com:/home/gluh/MySQL/Merge/5.1gluh@eagle.(none)2007-12-134-41/+79
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
| | | * \ \ \ Merge bk@192.168.21.1:mysql-5.1-optholyfoot/hf@hfmain.(none)2007-12-071-3/+5
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into mysql.com:/home/hf/work/26921/my51-26921
| | | | * \ \ \ Merge mysql.com:/home/hf/work/26921/my50-26921holyfoot/hf@hfmain.(none)2007-12-071-3/+5
| | | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | into mysql.com:/home/hf/work/26921/my51-26921
| | | | | * | | | Bug #26921 Problem in mysql_insert_id() Embedded C API function.holyfoot/hf@mysql.com/hfmain.(none)2007-11-301-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | client library only sets mysql->insert_id when query returned no recordset. So the embedded library should behave the same way