summaryrefslogtreecommitdiff
path: root/mysys/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* make sql_udf.cc to shorten dlerror() messagesSergei Golubchik2017-03-101-1/+1
| | | | just as sql_plugin.cc does
* Merge branch '10.0' into 10.1Vicențiu Ciorbaru2017-01-161-1/+1
|\
| * Merge remote-tracking branch 'origin/5.5' into 10.0vicentiu2017-01-061-1/+1
| |\
| | * move check_user/set_user from mysqld.cc to mysysSergei Golubchik2016-12-221-2/+2
| | |
* | | MDEV-6479 stack traces in 10.1Sergei Golubchik2015-02-281-1/+1
| | | | | | | | | | | | | | | | | | Take into account that PIE binaries are loaded at some offset, so addresses cannot be directly resolved with addr2line. Find this offset and subtract it before resolving an address.
* | | Push for testing of encryptionMonty2015-02-101-1/+1
| | |
* | | Merge 10.0.14 into 10.1Sergei Golubchik2014-10-151-2/+1
|\ \ \ | |/ /
| * | 5.5.39 mergeSergei Golubchik2014-08-071-2/+1
| |\ \ | | |/
| | * mysql-5.5.39 mergeSergei Golubchik2014-08-021-2/+1
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | ~40% bugfixed(*) applied ~40$ bugfixed reverted (incorrect or we're not buggy) ~20% bugfixed applied, despite us being not buggy (*) only changes in the server code, e.g. not cmakefiles
| | | * Backport from trunk:Tor Didriksen2014-05-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug#18187290 ISSUE WITH BUILDING MYSQL USING CMAKE 2.8.12 We want to upgrade to VS2013 on Windows. In order to do this, we need to upgrade to cmake 2.8.12 This has introduced some incompatibilities for .pdb files, and "make install" no longer works. To reproduce: cmake --build . --target package --config debug The fix: Rather than installing .pdb files for static libraries, we use the /Z7 flag to store symbolic debugging information in the .obj files.
* | | | MDEV 4427: query timeoutsMonty2014-10-071-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added MAX_STATEMENT_TIME user variable to automaticly kill queries after a given time limit has expired. - Added timer functions based on pthread_cond_timedwait - Added kill_handlerton() to signal storage engines about kill/timeout - Added support for GRANT ... MAX_STATEMENT_TIME=# - Copy max_statement_time to current user, if stored in mysql.user - Added status variable max_statement_time_exceeded - Added KILL_TIMEOUT - Removed digest hash from performance schema tests as they change all the time. - Updated test results that changed because of the new user variables or new fields in mysql.user This functionallity is inspired by work done by Davi Arnaut at twitter. Test case is copied from Davi's work. Documentation can be found at https://kb.askmonty.org/en/how-to-limittimeout-queries/ mysql-test/r/mysqld--help.result: Updated for new help message mysql-test/suite/perfschema/r/all_instances.result: Added new mutex mysql-test/suite/sys_vars/r/max_statement_time_basic.result: Added testing of max_statement_time mysql-test/suite/sys_vars/t/max_statement_time_basic.test: Added testing of max_statement_time mysql-test/t/max_statement_time.test: Added testing of max_statement_time mysys/CMakeLists.txt: Added thr_timer mysys/my_init.c: mysys/mysys_priv.h: Added new mutex and condition variables Added new mutex and condition variables mysys/thr_timer.c: Added timer functions based on pthread_cond_timedwait() This can be compiled with HAVE_TIMER_CREATE to benchmark agains timer_create()/timer_settime() sql/lex.h: Added MAX_STATEMENT_TIME sql/log_event.cc: Safety fix (timeout should be threated as an interrupted query) sql/mysqld.cc: Added support for timers Added status variable max_statement_time_exceeded sql/share/errmsg-utf8.txt: Added ER_QUERY_TIMEOUT sql/signal_handler.cc: Added support for KILL_TIMEOUT sql/sql_acl.cc: Added support for GRANT ... MAX_STATEMENT_TIME=# Copy max_statement_time to current user sql/sql_class.cc: Added timer functionality to THD. Added thd_kill_timeout() sql/sql_class.h: Added timer functionality to THD. Added KILL_TIMEOUT Added max_statement_time variable in similar manner as long_query_time was done. sql/sql_connect.cc: Added handling of max_statement_time_exceeded sql/sql_parse.cc: Added starting and stopping timers for queries. sql/sql_show.cc: Added max_statement_time_exceeded for user/connects status in MariaDB 10.0 sql/sql_yacc.yy: Added support for GRANT ... MAX_STATEMENT_TIME=# syntax, to be enabled in 10.0 sql/structs.h: Added max_statement_time user resource sql/sys_vars.cc: Added max_statement_time variables mysql-test/suite/roles/create_and_drop_role_invalid_user_table.test Removed test as we require all fields in mysql.user table. scripts/mysql_system_tables.sql scripts/mysql_system_tables_data.sql scripts/mysql_system_tables_fix.sql Updated mysql.user with new max_statement_time field
* | | | cleanup: galera merge, simple changesSergei Golubchik2014-10-011-4/+0
| | | |
* | | | MDEV-6247: Merge 10.0-galera to 10.1.Jan Lindström2014-08-261-0/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Merged lp:maria/maria-10.0-galera up to revision 3879. Added a new functions to handler API to forcefully abort_transaction, producing fake_trx_id, get_checkpoint and set_checkpoint for XA. These were added for future possiblity to add more storage engines that could use galera replication.
* | | 10.0-base mergeSergei Golubchik2014-02-031-0/+4
|\ \ \ | |/ /
| * | MySQL-5.5.35 mergeSergei Golubchik2014-01-221-0/+4
| |\ \ | | |/
| | * Bug 13878021 - WINDOWS PACKAGE THAT INCLUDES .PDB FILES FOR INTERMEDIATE ↵Sreedhar.S2013-10-091-0/+5
| | | | | | | | | | | | LIBRARIES USED
* | | 10.0-base merge.Sergei Golubchik2013-09-211-3/+9
|\ \ \ | |/ / | | | | | | | | | Partitioning/InnoDB changes are *not* merged (they'll come from 5.6) TokuDB does not compile (not updated to 10.0 SE API)
| * | MDEV-4472 Audit-plugin. Server-related part of the task.Alexey Botchkov2013-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | file_logger became the service. Data like query_id now are sent to the audit plugin. Fix for MDEV-4770 ported from 10.0. Fix added for the read_maria_plugin_info(). Log rotation can be disabled with 'set rotations=0'.
| * | mysql-5.5.33 mergeSergei Golubchik2013-09-061-1/+6
| |\ \ | | |/
| | * Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8Tor Didriksen2013-06-141-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport to 5.5 (external Bug#69407 Build warnings with mysql) support-files/build-tags: Run etags on sql_yacc.yy, ignore other .yy files unittest/mysys/explain_filename-t.cc: NO_PLAN seems to fail on some platforms, use the actual number instead.
* | | Temporary commit of 10.0-mergeMichael Widenius2013-03-261-4/+3
| | |
* | | Temporary commit of merge of MariaDB 10.0-base and MySQL 5.6Michael Widenius2012-08-011-2/+4
|/ /
* | Fix FreeBSD test errors. Also link with libexecinfo on FreeBSD for ↵Vladislav Vaintroub2012-05-041-1/+1
| | | | | | | | stacktrace functionality.
* | MDEV-15 Log SQL errors.Alexey Botchkov2012-03-141-1/+1
| | | | | | | | | | | | | | mysys/my_logger.c was moved to sql/sql_logger.c Logger service was rewritten with file functions instead of stream, so it can handle huge files.
* | MDEV-15 Log all SQL errors.Alexey Botchkov2012-03-141-1/+1
| | | | | | | | | | | | | | | | | | Added the logger service that provides us with the rotating logs. The plugin SQL_ERROR_LOG added. It logs the errors using the 'logger service' for the rotating log files. the example record from the log: 2012-03-09 15:07:29 root[root] @ localhost [] ERROR 1146: Table 'test.xyz' doesn't exist : select * from test.xyz
* | Merge MWL#192: Non-blocking client library, into MariaDB 5.5.unknown2012-02-211-1/+1
|\ \
| * | MWL#192: Non-blocking client API for libmysqlclient.unknown2011-09-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All client functions that can block on I/O have alternate _start() and _cont() versions that do not block but return control back to the application, which can then issue I/O wait in its own fashion and later call back into the library to continue the operation. Works behind the scenes by spawning a co-routine/fiber to run the blocking operation and suspend it while waiting for I/O. This co-routine/fiber use is invisible to applications. For i368/x86_64 on GCC, uses very fast assembler co-routine support. On Windows uses native Win32 Fibers. Falls back to POSIX ucontext on other platforms. Assembler routines for more platforms are relatively easy to add by extending mysys/my_context.c, eg. similar to the Lua lcoco library. For testing, mysqltest and mysql_client_test are extended with the option --non-blocking-api. This causes the programs to use the non-blocking API for database access. mysql-test-run.pl has a similar option --non-blocking-api that uses this, as well as additional testcases. An example program tests/async_queries.c is included that uses the new non-blocking API with libevent to show how, in a single-threaded program, to issue many queries in parallel against a database. client/async_example.c: Fix const warning ****** Fix bug with wrong timeout value for poll(). include/Makefile.am: Fix missing include for `make dist` include/mysql.h: Add prototypes for all non-blocking API calls. include/mysql.h.pp: Add prototypes for all non-blocking API calls. mysys/my_context.c: Fix type warning for makecontext() function pointer argument. sql-common/mysql_async.c: Fix crashes in the non-blocking API for functions that can take MYSQL argument that is NULL. tests/Makefile.am: Add header file to `make dist` tests/mysql_client_test.c: Replace blocking calls with wrappers around the non-blocking calls, used in mysql_client_test to test the new non-blocking API. tests/nonblock-wrappers.h: Replace blocking calls with wrappers around the non-blocking calls, used in mysql_client_test to test the new non-blocking API.
* | | - Always compile my_new.cc and safemalloc.c with mysysVladislav Vaintroub2012-01-201-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preprocessor macros USE_MYSYS_NEW and -DSAFEMALLOC are used to conditionally compile safemalloc or overwritten new/delete. -Define dummy symbol in my_new.cc in case -DUSE_MYSYS_NEW is not set. This avoids compiler/linker warnings about an essentially empty file being compiled.
* | | Fix embedded build on Windows.Vladislav Vaintroub2012-01-201-1/+1
| | |
* | | - Fix rpl_checksum test. Use basename of file in error messages, not the oVladislav Vaintroub2012-01-201-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | nes prefixed with .\ or ./ - Add my_basename() to mysys. - Do not compile files that are not needed on Windows (my_addr_resolve, an d safemalloc related stuff it it is not used) Avoids linker warnings about compilation of essentially empty files.
* | | 5.3 mergeSergei Golubchik2012-01-131-1/+1
|\ \ \
| * \ \ Merge with 5.2.Michael Widenius2011-12-111-1/+1
| |\ \ \ | | | | | | | | | | | | | | | no_error handling for select (used by INSERT ... SELECT) still needs to be fixed, but I will do that in a separate commit
| | * \ \ Merge with MariaDB 5.1Michael Widenius2011-11-241-1/+1
| | |\ \ \
| | | * \ \ Initail merge with MySQL 5.1 (XtraDB still needs to be merged)Michael Widenius2011-11-211-1/+1
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | Fixed up copyright messages.
| | | | * \ \ Updated/added copyright headersKent Boortz2011-07-031-4/+3
| | | | |\ \ \
| * | | | \ \ \ mergeSergei Golubchik2011-10-111-0/+1
| |\ \ \ \ \ \ \ | | |/ / / / / /
| | * | | | | | merge with 5.1Sergei Golubchik2011-10-071-0/+1
| | |\ \ \ \ \ \ | | | |/ / / / / | | | | | | / / | | | |_|_|/ / | | |/| | | |
| | | * | | | my_gethwaddr() on Solaris and WindowsSergei Golubchik2011-10-041-0/+1
| | | | | | |
* | | | | | | fixes for opensolaris compilation failuresSergei Golubchik2012-01-051-1/+1
| | | | | | |
* | | | | | | * remove WITH_DEBUG from CMakeLists.txtSergei Golubchik2011-12-151-17/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MYSQL_MAINTAINER_MODE and SAFEMALLOC take values ON/OFF/AUTO (in all builds, in none, only in debug and platform dependent) * ./configure prefers RelWithDebInfo unless the user overrides
* | | | | | | move safemalloc out of dbug.Sergei Golubchik2011-12-121-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remeber a real backtrace for every allocation. make safemalloc to tract C++ new/delete too. collateral fixes to make the test suite pass.
* | | | | | | another backtrace resolver that prints source file name and line numberSergei Golubchik2011-12-111-0/+5
| | | | | | |
* | | | | | | compiler warnings/errorsSergei Golubchik2011-11-231-0/+4
| | | | | | |
* | | | | | | mergeSergei Golubchik2011-11-031-1/+1
|\ \ \ \ \ \ \
| * | | | | | | build on windowsSergei Golubchik2011-11-021-1/+1
| | | | | | | |
* | | | | | | | mysql-5.5.18 mergeSergei Golubchik2011-11-031-1/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | / | | |_|_|_|_|/ | |/| | | | |
| * | | | | | Updated/added copyright headersKent Boortz2011-06-301-1/+1
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | |
| | * | | | | Updated/added copyright headersKent Boortz2011-06-301-1/+2
| | |\ \ \ \ \
* | | \ \ \ \ \ merge with 5.3Sergei Golubchik2011-10-191-1/+1
|\ \ \ \ \ \ \ \ | | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sql/sql_insert.cc: CREATE ... IF NOT EXISTS may do nothing, but it is still not a failure. don't forget to my_ok it. ****** CREATE ... IF NOT EXISTS may do nothing, but it is still not a failure. don't forget to my_ok it. sql/sql_table.cc: small cleanup ****** small cleanup
| * | | | | | | merge Windows performance patches into 5.3Vladislav Vaintroub2011-07-051-1/+1
| |\ \ \ \ \ \ \