summaryrefslogtreecommitdiff
path: root/libservices
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-12933 sort out the compression library chaosKartik Soneji2021-10-276-1/+85
| | | | | | | | | | | | | | | | | | | | | | | | bzip2/lz4/lzma/lzo/snappy compression is now provided via *services* they're almost like normal services, but in include/providers/ and they're supposed to provide exactly the same interface as original compression libraries (but not everything, only enough of if for the code to compile). the services are implemented via dummy functions that return corresponding error values (LZMA_PROG_ERROR, LZO_E_INTERNAL_ERROR, etc). the actual compression libraries are linked into corresponding provider plugins. Providers are daemon plugins that when loaded replace service pointers to point to actual compression functions. That is, run-time dependency on compression libraries is now on plugins, and the server doesn't need any compression libraries to run, but will automatically support the compression when a plugin is loaded. InnoDB and Mroonga use compression plugins now. RocksDB doesn't, because it comes with standalone utility binaries that cannot load plugins.
* MDEV-19275 Provide SQL service to plugins.Alexey Botchkov2021-10-192-0/+20
| | | | | | SQL service added. It provides the limited set of client library functions to be used by plugin.
* Add build on AIXEtienne Guesnet2020-12-161-0/+23
|
* Merge branch '10.3' into 10.4Oleksandr Byelkin2019-05-1921-21/+21
|\
| * Merge 10.2 into 10.3Marko Mäkelä2019-05-1421-21/+21
| |\
| | * Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-1119-19/+19
| | |\
| | | * Update FSF AddressVicențiu Ciorbaru2019-05-117-7/+7
| | | | | | | | | | | | | | | | * Update wrong zip-code
| | * | Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-112-2/+2
| | |\ \ | | | |/
| | | * Update FSF addressMichal Schorm2019-05-102-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is based on the work of Michal Schorm, rebased on the earliest MariaDB version. Th command line used to generate this diff was: find ./ -type f \ -exec sed -i -e 's/Foundation, Inc., 59 Temple Place, Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/Foundation, Inc. 59 Temple Place.* Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \ -exec sed -i -e 's/MA.*.....-1307.*USA/MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/Foundation, Inc., 59 Temple/Foundation, Inc., 51 Franklin/g' {} \; \ -exec sed -i -e 's/Place, Suite 330, Boston, MA.*02111-1307.*USA/Street, Fifth Floor, Boston, MA 02110-1335 USA/g' {} \; \ -exec sed -i -e 's/MA.*.....-1307/MA 02110-1335/g' {} \;
* | | | MDEV-5313 Improving audit api.Alexey Botchkov2018-12-122-0/+20
|/ / / | | | | | | | | | Service added to handle json.
* | | Remove compiler warningsMonty2018-01-301-1/+1
|/ /
* | MDEV-11663 Create services for functionality used by pluginsVladislav Vaintroub2017-04-273-1/+22
| | | | | | | | | | | | Added service for - encryption (AES) - error reporting, e.g my_printf_error()
* | Correct FSF addressiangilfillan2017-03-103-3/+3
| |
* | cleanup: sort various lists of servicesSergei Golubchik2017-03-101-12/+13
| |
* | thd_rnd serviceSergei Golubchik2017-03-102-0/+18
| |
* | base64 serviceSergei Golubchik2017-03-102-0/+19
| |
* | my_sha2 serviceSergei Golubchik2017-03-103-2/+21
| |
* | rename {sys_vars,sql_plugin_services}.h -> *.icSergei Golubchik2015-06-281-1/+1
| |
* | upate test results after 2300fe2eSergei Golubchik2015-05-161-0/+2
| | | | | | | | | | | | | | | | | | | | that is, after commit 2300fe2e0ed59e36046bb867cc7499bf4c3d7c27 Author: Sergei Golubchik <serg@mariadb.org> Date: Wed May 13 21:57:24 2015 +0200 Identical key derivation code in XtraDB/InnoDB/Aria
* | Identical key derivation code in XtraDB/InnoDB/AriaSergei Golubchik2015-05-152-0/+18
| | | | | | | | | | | | | | | | * Extract it into the "encryption_scheme" service. * Make these engines to use the service, remove duplicate code. * Change MY_AES_xxx error codes, to return them safely from encryption_scheme_encrypt/decrypt without conflicting with ENCRYPTION_SCHEME_KEY_INVALID error
* | renames to follow single consistent naming styleSergei Golubchik2015-04-092-2/+2
| | | | | | | | with namespace prefixes
* | encryption cleanup: delete obsolete filesSergei Golubchik2015-04-051-17/+0
| | | | | | | | they should've been deleted long ago, but weren't
* | encryption keys serviceSergei Golubchik2015-02-103-0/+35
| |
* | MDEV-6712 THD specifics for pluginsSergei Golubchik2014-12-042-0/+18
| | | | | | | | thd_specifics service
* | fixing embedded: WaaS. Wsrep as a Service.Sergei Golubchik2014-10-012-0/+21
| |
* | use MD5 service in innodb/xtradbSergei Golubchik2014-10-011-1/+1
| |
* | MD5 serviceSergei Golubchik2014-10-012-0/+19
| |
* | harmless typo fixedSergei Golubchik2014-02-041-2/+1
| |
* | MroongaSE: addint thd_autoinc and thd_error_context plugin servicesAlexander Barkov2013-12-123-0/+38
| |
* | 10.0-base merge.Sergei Golubchik2013-09-212-1/+23
|\ \ | | | | | | | | | | | | Partitioning/InnoDB changes are *not* merged (they'll come from 5.6) TokuDB does not compile (not updated to 10.0 SE API)
| * \ 5.5 merge and fixes for compiler/test errorsSergei Golubchik2013-09-182-1/+23
| |\ \ | | |/
| | * MDEV-4472 Audit-plugin. Server-related part of the task.Alexey Botchkov2013-09-092-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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'.
* | | 10.0-monty mergeSergei Golubchik2013-07-212-0/+19
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | includes: * remove some remnants of "Bug#14521864: MYSQL 5.1 TO 5.5 BUGS PARTITIONING" * introduce LOCK_share, now LOCK_ha_data is strictly for engines * rea_create_table() always creates .par file (even in "frm-only" mode) * fix a 5.6 bug, temp file leak on dummy ALTER TABLE
| * | | SHA1 serviceSergei Golubchik2013-07-133-1/+20
| | |/ | |/| | | | | | | (because mysql_ssl library is built with -fvisibility=hidden)
* | | Adding the timezone plugin service, to convert betweenAlexander Barkov2013-05-242-0/+19
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MYSQL_TIME and my_time_t and back. Using the new service instead of direct access to thd. added: include/mysql/service_thd_timezone.h libservices/thd_timezone_service.c modified: include/my_time.h include/mysql.h.pp include/mysql/plugin.h include/mysql/plugin_audit.h.pp include/mysql/plugin_auth.h.pp include/mysql/plugin_ftparser.h.pp include/mysql/services.h include/mysql_time.h include/service_versions.h libservices/CMakeLists.txt sql/sql_class.cc sql/sql_plugin_services.h storage/connect/value.cpp
* | remove the service for installing the closed-source mysql thread pool pluginSergei Golubchik2013-04-072-22/+1
| |
* | consistency in declaring service symbolsSergei Golubchik2013-04-075-5/+5
|/
* MDEV-4065 thd_kill_statement serviceSergei Golubchik2013-01-182-1/+20
|
* debug_sync is now a service, available to dynamically loaded plugins.Sergei Golubchik2012-03-283-19/+37
| | | | | | | | new make target - abi_update libservices/HOWTO: remove references to Makefile.am small tweaks
* MDEV-15 Log all sql errors.Alexey Botchkov2012-03-242-22/+1
| | | | | | | | | | | modified for MySQL 5.5. Logger service moved to the plugin/sql_errlog directory to be properly used later. plugin/sql_errlog/sql_errlog.c: Fixes for bugs #956427 (SQL_ERROR_LOG plugin produces bogus warnings about sql-error-log-size-limit value) and #956463 (Server crashes if SQL_ERROR_LOG fails to initialize) they're also MDEV-184 and MDEV-183 The sql_error_log_deinit() should be prepared for the logger_file to be NULL. The logger_file_size_limit upper limit wasn't properly set.
* MDEV-15 Log all SQL errors.Alexey Botchkov2012-03-142-1/+22
| | | | | | | | | 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
* use ADD_CONVENIENCE_LIBRARY when building libservices, becauseVladislav Vaintroub2011-12-261-1/+1
| | | | | | it is a static library that links with shared libraries, so strictly speaking it should have -fPIC or equivalent flags. Also, it must always build as static no matter whether BUILD_SHARED_LIBS is set.
* mysql-5.5.18 mergeSergei Golubchik2011-11-035-13/+16
|\
| * Updated/added copyright headersKent Boortz2011-06-305-13/+16
| |
* | merge with 5.3Sergei Golubchik2011-10-192-1/+19
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Added progress reporting for alter table, LOAD DATA INFILE and for aria ↵Michael Widenius2011-07-013-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tables: check table, repair table, analyze table. - The client gets a progress report message that triggers a callback function if requested with mysql_options(MYSQL_PROGRESS_CALLBACK, function) - Added Progress field last to 'show processlist' - Stage, Max_stage and Progress field added to information_schema.progresslist - The 'mysql' client by defaults enables progress reports when the output is a tty. - Added progress_report_time time variable to configure how often progress reports is sent to client Added read only system variable 'in_transaction' which is 1 if we have executed a BEGIN statement. client/client_priv.h: Added OPT_REPORT_PROGRESS client/mysql.cc: Added option --progress-reports (on by default if not batch mode) Progress reports is written to stdout for long running commands include/Makefile.am: Added mysql/service_progress_report.h include/myisamchk.h: Added variables to be able to do progress reporting in Aria and later in MyISAM include/mysql.h: Added new mysql_options() parameter: MYSQL_PROGRESS_CALLBACK include/mysql.h.pp: Added new mysql_options() parameter: MYSQL_PROGRESS_CALLBACK include/mysql/plugin.h: Added functions for reporting progress. include/mysql/plugin_auth.h.pp: Added functions for reporting progress. include/mysql_com.h: Added CLIENT_PROGRESS mysql_real_connect() flag. include/sql_common.h: Added callback function for reporting progress mysql-test/r/old-mode.result: Ensure that SHOW PROGRESSLIST doesn't have the Progress column in old mode. mysql-test/suite/funcs_1/datadict/datadict_priv.inc: Added new column mysql-test/suite/funcs_1/datadict/processlist_priv.inc: Test all new PROCESSLIST columns mysql-test/suite/funcs_1/r/is_columns_is.result: Updated results mysql-test/suite/funcs_1/r/is_columns_is_embedded.result: Updated results mysql-test/suite/funcs_1/r/is_columns_mysql_embedded.result: Updated results mysql-test/suite/funcs_1/r/is_tables_is_embedded.result: Updated results mysql-test/suite/funcs_1/r/processlist_priv_no_prot.result: Updated results mysql-test/suite/funcs_1/r/processlist_priv_ps.result: Updated results mysql-test/suite/funcs_1/r/processlist_val_no_prot.result: Updated results mysql-test/suite/funcs_1/r/processlist_val_ps.result: Updated results mysql-test/suite/pbxt/r/pbxt_locking.result: Updated results mysql-test/suite/pbxt/r/skip_name_resolve.result: Updated results mysql-test/t/old-mode.test: Ensure that SHOW PROGRESSLIST doesn't have the Progress column in old mode. plugin/handler_socket/handlersocket/Makefile.am: Added -lmysqlservices scripts/mytop.sh: Made 'State' field width dynamic. Added 'Progress' to process list display. sql-common/client.c: Added handling of progress messages. Removed check_license() function. sql/mysql_priv.h: Added opt_progress_report_time sql/mysqld.cc: Added progress_report_time time variable to configure how often progress reports is sent to client sql/protocol.cc: Added net_send_progress_packet() sql/protocol.h: New prototypes sql/set_var.cc: Added variables progress_report_time and in_transaction sql/sql_acl.cc: Safety fix: Made client_capabilities ulonglong sql/sql_class.cc: Added interface functions for progress reporting sql/sql_class.h: Added varibles in THD for progress reporting. Added CF_REPORT_PROGRESS sql/sql_load.cc: Added progress reporting for LOAD DATA INFILE sql/sql_parse.cc: Added CF_REPORT_PROGRESS for top level commands for which it's safe to send progress reports to client sql/sql_show.cc: Added Progress field last to 'show processlist' Stage, Max_stage and Progress field added to information_schema.progresslist sql/sql_table.cc: Added progress reporting for ALTER TABLE Added THD as argument to copy_data_between_tables() storage/maria/ha_maria.cc: Added progress reporting for check table, repair table, analyze table Fixed a bug in start_bulk_insert() that caused alter table to always run with all keys enabled. storage/maria/ma_check.c: Added progress reporting Remember old state before starting repair. This removes some warnings from optimize_table if create-with-sort fails. storage/maria/ma_check_standalone.h: Added dummy reporting function for standalone Aria programs. storage/maria/ma_sort.c: Added progress reporting storage/maria/maria_chk.c: Updated version storage/maria/maria_def.h: Added new prototypes tests/mysql_client_test.c: Added test case for progress reporting
* | | 5.5-mergeSergei Golubchik2011-07-022-22/+1
|\ \ \ | | |/ | |/|
| * | WL#5665: Removal of the autotools-based build systemDavi Arnaut2010-11-201-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The autotools-based build system has been superseded and is being removed in order to ease the maintenance burden on developers tweaking and maintaining the build system. In order to support tools that need to extract the server version, a new file that (only) contains the server version, called VERSION, is introduced. The file contents are human and machine-readable. The format is: MYSQL_VERSION_MAJOR=5 MYSQL_VERSION_MINOR=5 MYSQL_VERSION_PATCH=8 MYSQL_VERSION_EXTRA=-rc The CMake based version extraction in cmake/mysql_version.cmake is changed to extract the version from this file. The configure to CMake wrapper is retained for backwards compatibility and to support the BUILD/ scripts. Also, a new a makefile target show-dist-name that prints the server version is introduced. VERSION: Add top-level version file. cmake/mysql_version.cmake: Get version information from the top-level VERSION file. Do not cache the version components (MAJOR_VERSION, etc). Add MYSQL_RPM_VERSION as a replacement for MYSQL_U_SCORE_VERSION.
| * | add missing COMPONENT to all CMake INSTALL commandsVladislav Vaintroub2010-11-131-1/+1
| | |
* | | merge.Sergei Golubchik2010-11-251-1/+1
|\ \ \ | |/ / |/| / | |/ | | | | checkpoint. does not compile.