summaryrefslogtreecommitdiff
path: root/sql/sql_plugin.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'bb-10.4-release' into bb-10.5-releaseSergei Golubchik2021-02-151-4/+4
|\
| * Merge branch 'bb-10.3-release' into bb-10.4-releaseSergei Golubchik2021-02-121-4/+4
| |\ | | | | | | | | | | | | Note, the fix for "MDEV-23328 Server hang due to Galera lock conflict resolution" was null-merged. 10.4 version of the fix is coming up separately
| | * Merge branch '10.2' into 10.3Sergei Golubchik2021-02-011-4/+5
| | |\
| | | * MDEV-17251 SHOW STATUS unnecessary calls calc_sum_of_all_statusSergei Golubchik2021-01-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. only call calc_sum_of_all_status() if a global SHOW_xxx_STATUS variable is to be returned 2. only lock LOCK_status when copying global_status_var, but not when iterating all threads
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-04-251-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | The functional changes of commit 5836191c8f0658d5d75484766fdcc3d838b0a5c1 (MDEV-21168) are omitted due to MDEV-742 having addressed the issue.
| * | | slave_open_temp_tables to Atomic_counterSergey Vojtovich2020-04-151-1/+1
| |/ /
* | | cleanup: remove unused PLUGIN_INIT_SKIP_DYNAMIC_LOADINGSergei Golubchik2020-03-311-3/+2
|/ /
* | Merge 10.2 into 10.3Marko Mäkelä2019-07-021-0/+1
|\ \ | |/
| * Merge 10.1 into 10.2Eugene Kosov2019-06-231-0/+1
| |\
| | * MDEV-18661 loading the audit plugin causes performance regression.Alexey Botchkov2019-06-151-0/+1
| | | | | | | | | | | | | | | | | | Plugin fixed to not lock the LOCK_operations when not active. Server fixed to lock the LOCK_plugin less - do it once per thread and then only if a plugin was installed/uninstalled.
* | | Merge 10.2 into 10.3Marko Mäkelä2019-05-141-1/+1
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2019-05-131-1/+1
| |\ \ | | |/
| | * Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-111-1/+1
| | |\
| | | * Update FSF AddressVicențiu Ciorbaru2019-05-111-1/+1
| | | | | | | | | | | | | | | | * Update wrong zip-code
| | * | MDEV-9312: storage engine not enforced during galera cluster replicationNirbhay Choubey2016-09-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Perform a post initialization of plugin-related variables of wsrep threads after their global counterparts have been initialized.
* | | | Adieu find_sys_var_ex()Sergey Vojtovich2019-05-031-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only take LOCK_plugin for plugin system variables. Reverted optimisation that was originally done for session tracker: it makes much less sense now. Specifically only if connections would want to track plugin session variables changes and these changes would actually happen frequently. If this ever becomes an issue, there're much better ways to optimise this workload. Part of MDEV-14984 - regression in connect performance
* | | | Change C_STRING_WITH_LEN to STRING_WITH_LENMonty2018-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This preserves const str for constant strings Other things - A few variables where changed from LEX_STRING to LEX_CSTRING - Incident_log_event::Incident_log_event and record_incident where changed to take LEX_CSTRING* as an argument instead of LEX_STRING
* | | | MDEV-14505 - Threads_running becomes scalability bottleneckSergey Vojtovich2017-12-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of updating global counter, calculate Threads_running on the fly. All threads having command != COM_SLEEP are included. Behaviour changes: Previously SHOW STATUS and SHOW GLOBAL STATUS returned the same values representing global status. Now SHOW STATUS always returns 1 indicating that current session has 1 thread running. Previously only threads that were executing dispatch_command() or running events were accounted by Threads_running. Now it is rough equivalent of SELECT COUNT(*) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE state!='Sleep'
* | | | Enusure that my_global.h is included firstMichael Widenius2017-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added sql/mariadb.h file that should be included first by files in sql directory, if sql_plugin.h is not used (sql_plugin.h adds SHOW variables that must be done before my_global.h is included) - Removed a lot of include my_global.h from include files - Removed include's of some files that my_global.h automatically includes - Removed duplicated include's of my_sys.h - Replaced include my_config.h with my_global.h
* | | | Changing field::field_name and Item::name to LEX_CSTRINGMonty2017-04-231-9/+9
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Benefits of this patch: - Removed a lot of calls to strlen(), especially for field_string - Strings generated by parser are now const strings, less chance of accidently changing a string - Removed a lot of calls with LEX_STRING as parameter (changed to pointer) - More uniform code - Item::name_length was not kept up to date. Now fixed - Several bugs found and fixed (Access to null pointers, access of freed memory, wrong arguments to printf like functions) - Removed a lot of casts from (const char*) to (char*) Changes: - This caused some ABI changes - lex_string_set now uses LEX_CSTRING - Some fucntions are now taking const char* instead of char* - Create_field::change and after changed to LEX_CSTRING - handler::connect_string, comment and engine_name() changed to LEX_CSTRING - Checked printf() related calls to find bugs. Found and fixed several errors in old code. - A lot of changes from LEX_STRING to LEX_CSTRING, especially related to parsing and events. - Some changes from LEX_STRING and LEX_STRING & to LEX_CSTRING* - Some changes for char* to const char* - Added printf argument checking for my_snprintf() - Introduced null_clex_str, star_clex_string, temp_lex_str to simplify code - Added item_empty_name and item_used_name to be able to distingush between items that was given an empty name and items that was not given a name This is used in sql_yacc.yy to know when to give an item a name. - select table_name."*' is not anymore same as table_name.* - removed not used function Item::rename() - Added comparision of item->name_length before some calls to my_strcasecmp() to speed up comparison - Moved Item_sp_variable::make_field() from item.h to item.cc - Some minimal code changes to avoid copying to const char * - Fixed wrong error message in wsrep_mysql_parse() - Fixed wrong code in find_field_in_natural_join() where real_item() was set when it shouldn't - ER_ERROR_ON_RENAME was used with extra arguments. - Removed some (wrong) ER_OUTOFMEMORY, as alloc_root will already give the error. TODO: - Check possible unsafe casts in plugin/auth_examples/qa_auth_interface.c - Change code to not modify LEX_CSTRING for database name (as part of lower_case_table_names)
* | | Fix many -Wconversion warnings.Marko Mäkelä2017-03-071-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define my_thread_id as an unsigned type, to avoid mismatch with ulonglong. Change some parameters to this type. Use size_t in a few more places. Declare many flag constants as unsigned to avoid sign mismatch when shifting bits or applying the unary ~ operator. When applying the unary ~ operator to enum constants, explictly cast the result to an unsigned type, because enum constants can be treated as signed. In InnoDB, change the source code line number parameters from ulint to unsigned type. Also, make some InnoDB functions return a narrower type (unsigned or uint32_t instead of ulint; bool instead of ibool).
* | | MDEV-9312: storage engine not enforced during galera cluster replicationNirbhay Choubey2016-11-071-0/+7
| | | | | | | | | | | | | | | | | | Perform a post initialization of plugin-related variables of wsrep threads after their global counterparts have been initialized.
* | | Merge branch '10.1' into 10.2Sergei Golubchik2016-09-091-0/+4
|\ \ \ | |/ /
| * | Merge branch '10.0' into 10.1Sergei Golubchik2016-08-251-0/+2
| |\ \
| | * \ Merge branch '5.5' into 10.0Sergei Golubchik2016-08-101-0/+2
| | |\ \ | | | |/
| | | * MDEV-10010 - potential deadlock on windows due to recursiveVladislav Vaintroub2016-08-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | SRWLock acquisition Backport patch from 10.1
| * | | MDEV-10010 - Recursive call to mysql_rwlock_rdlock for ↵Sergey Vojtovich2016-07-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | LOCK_system_variables_hash Avoid recursive LOCK_system_variables_hash acquisition in intern_sys_var_ptr() by pre-syncing dynamic session variables.
* | | | MDEV-8931: (server part of) session state trackingOleksandr Byelkin2016-08-311-0/+2
| | | | | | | | | | | | | | | | System variables tracking
* | | | MDEV-8931: (server part of) session state trackingOleksandr Byelkin2016-08-311-0/+2
|/ / / | | | | | | | | | initial commit to test
* | | Merge branch '10.0' into 10.1Sergei Golubchik2016-06-281-1/+1
|\ \ \ | |/ /
| * | Replace dynamic loading of mysqld.exe data for plugins, replace with ↵Vladislav Vaintroub2016-06-211-1/+1
| | | | | | | | | | | | MYSQL_PLUGIN_IMPORT
* | | Push for testing of encryptionMonty2015-02-101-2/+2
| | |
* | | MDEV-5231: Per query variables from Percona Server (rewritten)Oleksandr Byelkin2014-11-111-0/+1
| | |
* | | cleanup: option_type -> scopeSergei Golubchik2014-10-101-1/+0
|/ /
* | remove sys_var specific restore_pluginvar_names() function,Sergei Golubchik2013-12-091-0/+3
| | | | | | | | use generic restore_ptr_backup() approach
* | MDEV-4403 Attempting to use cassandra storage engine causes "service ↵Sergei Golubchik2013-12-091-1/+10
| | | | | | | | | | | | | | | | 'my_snprintf_service' interface version mismatch" When a DSO is loaded we rewrite service pointers to point to the actual service structures. But when a DSO is unloaded, we have to restore their original values, in case this DSO wasn't removed from memory on dlclose() and is later loaded again.
* | Fixing the problem with my_bool_t defined two times.Alexander Barkov2013-06-031-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (it worked fine with the modern gcc, but failed on some other compilers). modified: include/my_global.h include/mysql/plugin.h include/mysql/plugin_audit.h.pp include/mysql/plugin_auth.h.pp include/mysql/plugin_ftparser.h.pp include/mysql/service_thd_timezone.h sql/item_func.cc sql/mysqld.cc sql/set_var.cc sql/sql_plugin.cc sql/sql_plugin.h sql/sql_show.cc sql/sys_vars.cc storage/perfschema/ha_perfschema.cc
* | 10.0-base mergeSergei Golubchik2013-04-151-2/+6
|\ \
| * | MDEV-3807 show plugins soname 'xxx'Sergei Golubchik2013-04-091-0/+4
| | | | | | | | | | | | | | | | | | and INFORMATION_SCHEMA.ALL_PLUGINS table with condition pushdown for I_S.ALL_PLUGINS and a new status variable to cound successful dlopen's
| * | MDEV-4022 table attributes with sysvar as a default valueSergei Golubchik2013-04-091-0/+2
| | |
| * | remove long time obsolete xyz_ci() copies of xyz() macrosSergei Golubchik2013-04-071-2/+0
| |/
* | MDEV-3860 backport --plugin-load-add (and related mysql-test changes)Sergei Golubchik2012-12-151-1/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | revno: 3383 revision-id: georgi.kodinov@oracle.com-20110818083108-qa3h3ufqu4zne80a committer: Georgi Kodinov <Georgi.Kodinov@Oracle.com> timestamp: Thu 2011-08-18 11:31:08 +0300 message: Bug #11766001: 59026: ALLOW MULTIPLE --PLUGIN-LOAD OPTIONS Implemented support for a new command line option : --plugin-load-add=<comma-separated-name-equals-value-list> This option takes the same type of arguments that --plugin-load does and complements --plugin-load (that continues to operate as before) by appending its argument to the list specified by --plugin-load. So --plugin-load can be considered a composite option consisting of resetting the plugin load list and then calling --plugin-load-add to process the argument. Note that the order in which you specify --plugin-load and --plugin-load-add is important : "--plugin-load=x --plugin-load-add=y" will be equivalent to "--plugin-load=x,y" whereas "--plugin-load-add=y --plugin-load=x" will be equivalent to "plugin-load=x". Incompatible change : the --help --verbose command will no longer print the --plugin-load variable's values (as it doesn't have one). Otherwise both --plugin-load and --plugin-load-add are mentioned in it.
* merge with MySQL 5.5.27Sergei Golubchik2012-08-091-3/+3
|\ | | | | | | manually checked every change, reverted incorrect or stupid changes.
| * Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING)Jon Olav Hauglid2012-06-291-2/+2
| |\ | | | | | | | | | Manual merge from mysql-5.1 to mysql-5.5
* | | mdev-224 plugin usage statistics in the feedback reportsSergei Golubchik2012-04-181-0/+1
| | |
* | | mdev-20: INSTALL PLUGIN SONAMESergei Golubchik2012-03-051-1/+2
| | |
* | | 5.3 mergeSergei Golubchik2012-01-131-1/+2
|\ \ \
| * \ \ Merge with MariaDB 5.1Michael Widenius2011-11-241-2/+4
| |\ \ \
| | * \ \ Initail merge with MySQL 5.1 (XtraDB still needs to be merged)Michael Widenius2011-11-211-2/+4
| | |\ \ \ | | | | |/ | | | |/| | | | | | Fixed up copyright messages.
| * | | | Merge with 5.1 to get in changes from MySQL 5.1.55Michael Widenius2011-02-281-0/+1
| |\ \ \ \ | | |/ / /