summaryrefslogtreecommitdiff
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '5.5' into 10.0Sergei Golubchik2017-10-181-0/+6
|\
| * MDEV-13459 Warnings, when compiling with gcc-7.xSergei Golubchik2017-10-171-0/+6
| | | | | | | | mostly caused by -Wimplicit-fallthrough
| * MDEV-13137 MySQL 5.6.23 Crashes when SET GLOBAL server_audit_logging=OFF;Alexey Botchkov2017-09-191-2/+8
| | | | | | | | | | | | The MySQL 5.6 doesn't always send the MYSQL_AUDIT_GENERAL_LOG notification. So we have to suppress the log_current_query() in this case.
* | MDEV-13137 MySQL 5.6.23 Crashes when SET GLOBAL server_audit_logging=OFF;Alexey Botchkov2017-09-191-2/+8
| | | | | | | | | | | | The MySQL 5.6 doesn't always send the MYSQL_AUDIT_GENERAL_LOG notification. So we have to suppress the log_current_query() in this case.
* | Fix compiler warningsMarko Mäkelä2017-09-011-6/+0
| | | | | | | | | | | | metadata_lock_info_duration[]: Remove the unused variable. Add some comments /* fall through */ to silence -Wimplicit-fallthrough
* | Merge remote-tracking branch 'origin/5.5' into 10.0Vicențiu Ciorbaru2017-07-251-3/+3
|\ \ | |/
| * MDEV-12646: Apply fixes found by Coverity static analysis toolDaniel Black2017-07-181-3/+3
| | | | | | | | Inspired by: https://github.com/devexp-db/mariadb/blob/f27/mariadb-covscan-stroverflow.patch
* | MDEV-6262 analyze the coverity report on mariadbSergei Golubchik2017-05-193-1/+7
| | | | | | | | | | uploaded 10.0, analyzed everything with the Impact=High (and a couple of Medium)
* | Merge 5.5 into 10.0Marko Mäkelä2017-03-081-1/+1
|\ \ | |/ | | | | | | | | | | | | | | Also, implement MDEV-11027 a little differently from 5.5: recv_sys_t::report(ib_time_t): Determine whether progress should be reported. recv_apply_hashed_log_recs(): Rename the parameter to last_batch.
| * MDEV-11084 server_audit does not work with mysql_community 5.7.16.Alexey Botchkov2017-03-061-1/+1
| | | | | | | | Server audit plugin version updated.
* | Merge branch '5.5' into 10.0Vicențiu Ciorbaru2017-03-031-12/+22
|\ \ | |/
| * cleanup: NO_OPEN_3 was never definedSergei Golubchik2017-02-271-3/+1
| |
| * MDEV-11904 Make Audit Plugin working with MySQL 8.0.Alexey Botchkov2017-02-201-9/+21
| | | | | | | | | | MySQL 8.0 basically inherits the 5.7 model, though some modeifications required for the plugin.
* | Merge remote-tracking branch 'origin/5.5' into 10.0vicentiu2017-01-061-0/+1
|\ \ | |/
| * MDEV-11510 Audit plugin sometimes causes server to crash when using with MySQL.Alexey Botchkov2016-12-161-0/+1
| | | | | | | | | | | | | | | | MySQL has a bug failing to handle MYSQL_THDVAR_STR(... PLUGIN_VAR_NOSYSVAR | PLUGIN_VAR_NOCMDOPT | PLUGIN_VAR_MEMALLOC) so fall back to just PLUGIN_VAR_READONLY | PLUGIN_VAR_MEMALLOC whem MySQL started.
* | Merge branch '5.5' into 10.0Sergei Golubchik2016-09-291-2/+11
|\ \ | |/
| * Feedback plugin : add support for Windows 10 / Server 2016.Vladislav Vaintroub2016-09-281-2/+11
| | | | | | | | Also add fallback version string for unknown future versions.
* | Merge branch '5.5' into 10.0Sergei Golubchik2016-09-271-3/+2
|\ \ | |/
| * MDEV-10441 Document the server_audit_loc_info variableSergei Golubchik2016-09-261-3/+2
| | | | | | | | | | fix PLUGIN_VAR_NOSYSVAR | PLUGIN_VAR_NOCMDOPT plugin thdvars to work. use that for server_audit_loc_info
* | MDEV-9728 - Hard crash in metadata_lock_infoSergey Vojtovich2016-06-235-15/+8
| | | | | | | | | | Disable output of MDL lock duration since there is no facility to retreive it properly.
* | MDEV-9728 - Hard crash in metadata_lock_infoSergey Vojtovich2016-06-231-114/+53
| | | | | | | | | | Reverted APC based fix. APC subsystem is not ready to serve metadata_lock_info needs.
* | compilation failuresSergei Golubchik2016-06-221-3/+11
| | | | | | | | | | windows: use GetProcAddress() to access internal server data structures rhel5: CONNECT-JDBC requires at least Java 1.6
* | Merge branch 'bb-10.0-serg' into 10.0Sergei Golubchik2016-06-221-0/+1
|\ \
| * \ Merge branch '5.5' into bb-10.0Sergei Golubchik2016-06-211-0/+1
| |\ \ | | |/
| | * MDEV-9749 InnoDB receives 'Bad file descriptor' error, possibly related to ↵Sergei Golubchik2016-06-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feedback plugin and MDEV-10250 InnoDB: Error: File (unknown): 'close' returned OS error 209. Cannot continue operation" after a failed connect() feedback plugin was continuing with the file descriptor, trying to send the data (which failed) and closing it at the end. Even though this fd might've been reused for something else already.
* | | MDEV-9728 - Hard crash in metadata_lock_infoSergey Vojtovich2016-06-211-0/+3
| | | | | | | | | | | | Added missing target_thd initialization when processing local thread.
* | | MDEV-9728 - Hard crash in metadata_lock_infoSergey Vojtovich2016-06-213-54/+104
|/ / | | | | | | | | | | | | | | | | | | | | metadata_lock_info plugin called MDL_context::find_ticket() to obtain lock duration, which in turn iterates foreign thread private lists. These lists can be updated by owner thread without protection. Fixed by iterating threads (instead of MDL locks and tickets) and obtaining data through APC. Also fixed mdl_iterate_lock() to initialize iterator under prlock protection.
* | Fixed failing test cases and compiler warningsMonty2016-04-251-6/+4
| | | | | | | | | | | | | | | | | | | | | | - Fixed wait condition in kill_processlist-6619 - Updated Ssl_chiper for openssl tests - Added supression for valgrinds when using libcrypto - Fixed wrong argument to pthread_mutex in server_audit.c when compiling with debug - Adding missing debug_sync_update() to debug_sync.h - Added initializers to some variables and fixed error handling in jsonudf.cpp - Fixed cluster_filter_unpack_varchar which doesn't have a stable index type. - Updated compiler_warnings.supp
* | MDEV-9281 - Debian: the Lintian complains about "shlib-calls-exit" in ↵Sergey Vojtovich2016-04-204-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | handlersocket.so MDEV-9278 - Debian: the Lintian complains about "shlib-calls-exit" in ha_spider.so Handlersocket handles errors in a way that it aborts program execution. In most cases it is done via abort(). One exception was host/service resolution failure, which was aborted with exit(). As a workaround replaced this exit() with abort() for symmetry with other error handling.
* | Fix spelling: occurred, execute, which etcOtto Kekäläinen2016-03-042-6/+6
| |
* | Merge branch '5.5' into 10.0Sergei Golubchik2016-02-156-19/+109
|\ \ | |/
| * fix buffer overrunVladislav Vaintroub2016-02-151-1/+1
| |
| * Errorneous PSI declaration line fixed.Alexey Botchkov2016-02-121-3/+7
| |
| * Merge branch 'bb-5.5-serg' into 5.5Sergei Golubchik2016-02-091-2/+2
| |\
| | * Merge branch 'mysql/5.5' into 5.5Sergei Golubchik2016-02-091-2/+2
| | |\ | | | | | | | | | | | | | | | | reverted about half of commits as either not applicable or outright wrong
| | | * Bug#21770366 backport bug#21657078 to 5.5 and 5.6Ajo Robert2016-01-071-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem Statement ========= Fix various issues when building MySQL with Visual Studio 2015. Fix: ======= - Visual Studio 2015 adds support for timespec. Add check and related code to use this and only use our replacement if timespec is not defined. - Rename lfind/lsearch to my* to avoid redefinition problems. - Set default value for TMPDIR to "" on Windows as P_tmpdir no longer exists. - using VS definition of snprintf if available - tzname are now renamed to _tzname.
| * | | MDEV-9438 backport feedback-http-proxy to 5.5 and 10.0.Alexey Botchkov2016-02-094-13/+99
| |/ / | | | | | | | | | The http-proxy option to the FEEDBACK plugin backported.
* | | Merge branch '5.5' into 10.0Alexey Botchkov2016-01-254-275/+1321
|\ \ \ | |/ / | | | | | | | | | Conflicts: plugin/server_audit/server_audit.c
| * | MDEV-9106 Audit plugin not working with MySQL 5.7.Alexey Botchkov2016-01-151-3/+44
| | | | | | | | | | | | fixing Windows crash.
| * | MDEV-9106 Audit Plugin doesn't run with MySQL 5.7.Alexey Botchkov2016-01-131-17/+39
| | | | | | | | | | | | | | | | | | MariaDB 5.5 built in debug gets unhappy with mutexes. Although everything is correct, some DBUG_ASSERT can happen. So this patch keeps safe_mutex silent.
| * | MDEV-9106 Audit plugin compiled with MariaDB can't install on MySQL 5.7.Alexey Botchkov2016-01-124-261/+1254
| | | | | | | | | | | | | | | The audit API was seriously changed in MySQL 5.7. so we had to adapt the plugin's code to that.
* | | Fixed auth_socket static compilationSergey Vojtovich2015-12-182-2/+2
| | |
* | | MDEV-8378 - Debian: the Lintian complains about many "shlib-calls-exit" in manymariadb-10.0.23Sergey Vojtovich2015-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | of the plugins Removed exit() from daemon_example, pass error to caller instead. Also removed unused my_abort_hook.
* | | Merge branch '5.5' into 10.0Sergei Golubchik2015-12-134-10/+17
|\ \ \ | |/ /
| * | Merge branch 'mysql/5.5' into 5.5Sergei Golubchik2015-12-091-3/+9
| |\ \ | | |/
| | * Bug #21467458 - UNINSTALL PLUGIN DAEMON_EXAMPLE CRASHESShishir Jaiswal2015-09-161-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MYSQLD. DESCRIPTION =========== Crash occurs when daemon_example plugin is uninstalled immediately after its installed. This can be reproduced by installing and uninstalling the plugin repeatedly. ANALYSIS ======== The daemon_example_plugin_deinit() function of the daemon example plugin calls pthread_cancel() but doesn't wait for the worker thread to actually complete before deallocating the data buffer and closing the file that it writes to. This is causing SEGFAULT! FIX === Added a pthread_join() to wait for the thread to complete before doing the cleanup work. Removed a stray 'x' variable from the example code. NOTE ==== Have made an entry in .opt file as given below: --plugin-dir=$DAEMONEXAMPLE_DIR This is done so that the program takes plugin directory as ../<dbg>/plugin/daemon_example/ instead of ../lib/plugin/
| | * Bug#17633291: SET PROPER COMPILE OPTIONS FOR CLANGJon Olav Hauglid2014-10-131-1/+3
| | | | | | | | | | | | | | | | | | | | | Bug#17959689: MAKE GCC AND CLANG GIVE CONSISTENT COMPILATION WARNINGS Bug#18313717: ENABLE -WERROR IN MAINTANER MODE WHEN COMPILING WITH CLANG Bug#18510941: REMOVE CMAKE WORKAROUNDS FOR OLDER VERSIONS OF OS X/XCODE Backport from mysql-5.6 to mysql-5.5
| | * Updated/added copyright header. Added line "use is subject to license terms" Murthy Narkedimilli2014-02-173-0/+3
| | | | | | | | | | | | to copyright header.
| | * BUG#17460821: ASSERTION ERROR WHEN STOPPING SLAVE AFTER SEMI-SYNC ON MASTER ↵Luis Soares2013-10-171-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IS DISABLED The assertion happens when: (i) the master and slave are configured to use the semisync plugin; (ii) the DBA disables semisync on the master; (iii) and he also unsets the option to wait for slaves ACK even if the semisync slave count reaches 0 during the waiting period. This combination of factors makes the server run into an assertion as soon as the last semisync slave disconnects and its dump thread exits. The root of the problem is the fact that when the dump thread disconnects and calls the observer hook transmit_stop, which ends up calling ReplSemiSyncMaster::remove_slave, there is no check whether the master has already disabled semisync or not. If it has, the then a second call to the switch_off member function must be avoided. The quick fix is to avoid calling switch_off if the DBA has disabled the semisync plugin interactively on the master. Also, the switch_off member function should only be called if the plugin has not been switched off already. This is basically the pattern throughout the rest of the semisync plugin and no other calls seem vulnerable to similar crashes/assertions. (This a backport of the patch to 5.5, which is also vulnerable.)
| | * BUG#17508351: REDUNDANT CODE IN REPLSEMISYNCMASTER::UPDATESYNCHEADERLuis Soares2013-10-081-8/+2
| | | | | | | | | | | | | | | | | | ReplSemiSyncMaster::updateSyncHeader contains redundant assignments to the local variable sync. This patch removes them.