summaryrefslogtreecommitdiff
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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.
| * Bug#17327454:SEMI-SYNC REPLICATION MASTER CRASH WHEN SETSujatha Sivakumar2013-09-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPL_SEMI_SYNC_MASTER_ENABLED OFF. Problem: ======= If master is waiting for a reply from slave, at this time set global rpl_semi_sync_master_enabled=OFF, the master server will crash. Analysis: ======== When master is waiting for a reply from slave, at this time if semi sync is switched off on master, during switch off if active transactions are present the transactions will be cleared and "active_tranxs_" variable will be set to NULL. When the waiting master connection finds that semi sync is switched of it tries to access "active_tranxs_" without checking if the transaction list exists or not. Accessing NULL transaction list causes the crash. Fix: === A check has been added to see a valid list exists before accessing the "active_tranxs_".
| * Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING)Jon Olav Hauglid2012-06-294-5/+5
| |\ | | | | | | Manual merge from mysql-5.1 to mysql-5.5
| * \ Updated/added copyright headersMySQL Build Team2012-02-165-5/+5
| |\ \ | | |/
| | * Updated/added copyright headersKent Boortz2011-07-031-2/+2
| | |\
| * | \ merge from 5.5.16Daniel Fischer2011-09-2110-12/+24
| |\ \ \
| | * | | Merging into mysql-5.5.16-release.Mats Kindahl2011-08-1510-12/+24
| | | | |
| | * | | Cherry-picking WL#5710 from mysql-5.5 to mysql-5.5.16-release.Alexander Nozdrin2011-08-152-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original revision id: # revno: 3489 [merge] # revision-id: tatjana.nuernberg@oracle.com-20110811120945-c6x9a5d2du8s9oj2 # parent: tatjana.nuernberg@oracle.com-20110811112736-so8r813hs8dmf7nr # parent: chuck.bell@oracle.com-20110810183949-2s9uxcuoux2p668e # committer: Tatjana Azundris Nuernberg <tatjana.nuernberg@oracle.com> # branch nick: 55-9 # timestamp: Thu 2011-08-11 13:09:45 +0100 # message: # auto-merge This merge revision also has a patch for Bug 12664445, which has been also taken to 5.5.16.
| * | | | BUG#12818224: 61921: WRITETRAXINBINLOG SHOULD BE WRITETRANXINBINLOG Luis Soares2011-09-081-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IN SEMISYNC_MASTER.CC Fixing typo: writeTraxInBinlog() => writeTranxInBinlog() . Additionally, fixed identation.
| * | | | WL#5710 : Enable and disable plugins (mysql_plugin)Chuck Bell2011-07-191-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes the plugin configuration file format to make it easier to add new plugins and remove complexity. It also adds more information when plugin configuration file reads fail.
| * | | | WL#5710 : mysql_plugin - enable or disable pluginsChuck Bell2011-07-192-0/+8
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a new client utility that enables or disables plugin features. The utility disables or enables a plugin using values (name, soname, and symbols) provided via a configuration file by the same name. For example, to ENABLE the daemon_example plugin, the utility will read the daemon_example.ini configuration file and use the values contained to enable or disable the plugin.
| * | | Merge from mysql-5.5.14-releasehery.ramilison@oracle.com2011-07-061-4/+5
| |\ \ \
| | * | | Bug #12633140 : AUDIT PLUGIN SOURCE FILES HAVE OUT OF DATE Georgi Kodinov2011-06-131-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | COPYRIGHT NOTICE Fixed copyright headers of updated files.
| * | | | Updated/added copyright headersKent Boortz2011-06-3010-11/+15
| |\ \ \ \ | | |/ / / | |/| / / | | |/ /
| | * | Updated/added copyright headersKent Boortz2011-06-302-2/+3
| | | |
| * | | BUG#12611785 - AUDIT INTERFACE STRICT-ALIASING WARNINGSSergey Vojtovich2011-06-031-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The types mysql_event_general/mysql_event_connection are being cast to the incompatible type mysql_event. The way mysql_event and the other types are designed are prone to strict aliasing violations and can break things depending on how compilers optimizes this code. This patch fixes audit interface, so it confirms to strict- aliasing rules. It introduces incompatible changes to audit interface: - mysql_event type has been removed; - event_class has been removed from mysql_event_generic and mysql_event_connection types; - st_mysql_audit::event_notify() second argument is event_class; - st_mysql_audit::event_notify() third argument is event of type (const void *). "Writing Audit Plugins" section of manual should be updated: http://dev.mysql.com/doc/refman/5.5/en/writing-audit-plugins.html
| * | | Automerged (cherrypicked) cset from 5.6:Luis Soares2011-05-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | zhenxing.he@sun.com-20101202073812-iel8lvhmulyagtsv This takes care of valgrind warnings in 5.5 that exhibit the same trace as in BUG#11763880 (BUG#56650).
| * | | Fixed a wrong name in a commentGeorgi Kodinov2011-04-051-1/+1
| | | |
| * | | merge mysql-5.1->mysql-5.5Georgi Kodinov2011-03-221-2/+2
| |\ \ \ | | | |/ | | |/|
| | * | Bug #11763135: 55812: MYSQL AB SHOULD NOT BE AUTHOR, EVEN IN EXAMPLEGeorgi Kodinov2011-03-211-2/+2
| | |/ | | | | | | Fixed the author and the copyright.
| * | Bug #59017: Auth plugin socket_peercred fails to load in 5.5.8Georgi Kodinov2011-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Due to how the server checks for option names the name of the plugin "socket_peercred" collides with the existing server side option "socket". Renamed the plugin from "socket_peercred" to "auth_socket" to avoid the name clash.
| * | Bug #59657: Move the client authentication_pam plugin into the server repositoryGeorgi Kodinov2011-01-311-0/+45
| | | | | | | | | | | | | | | Created a clear text built in client authentication plugin. Test case added. Added a negative test case : a login failure.
| * | WL#5665: Removal of the autotools-based build systemDavi Arnaut2010-11-2014-238/+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.
| * | Bug #57774: Typos/ambiguities in the WL1054 commentsGeorgi Kodinov2010-10-272-22/+12
| | | | | | | | | | | | Fixed few typos and added better wording as suggested.
| * | due to mergeHorst.Hunger2010-10-205-1/+489
| | |
| * | Bug#45288: pb2 returns a lot of compilation warnings on linuxDavi Arnaut2010-10-071-7/+10
| | | | | | | | | | | | Fix warnings related to the use of the deprecated gets() function and passing NULL to non-pointer argument of the sys_var constructor.
| * | Bug #56767: Make sure client plugins in 1054 are compatible with Georgi Kodinov2010-10-042-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connectors plugins Implemented changes needed to keep the client plugin API compatible with the existing plugins : 1. Provided an options() client plugin API to let the application pass options to the plugin after loading it 2. Added "License" (const char *) to specify the client plugin's license 3. Added "mysql_api" as a placeholder that the client library can use to pass function pointers to the plugin so that the plugin can call the C lib back. 4. Updated the existing client plugins to comply with the API change. 5. Added more detailed error message generation for Windows.
| * | WL#1054: code style remarks fixed.Georgi Kodinov2010-09-203-8/+9
| | |
| * | merged mysql-5.5 into WL1054-5.5Georgi Kodinov2010-08-165-17/+15
| |\ \
| | * | Patch for Bug#55854 (MySQL AB should not be AUTHOR, copyright incorrect).Alexander Nozdrin2010-08-125-17/+15
| | | | | | | | | | | | Fixing copyright text.
| * | | Bug #55634, Bug#55635, Bug#55637, Bug#55638Georgi Kodinov2010-08-164-50/+54
| | | | | | | | | | | | | | | | Fixed copyright texts..
| * | | WL#1054: Pluggable authentication supportGeorgi Kodinov2010-08-096-0/+678
| |/ / | | | | | | | | | Merged the implementation to a new base tree.
| * | Merge of mysql-trunk-bugfixing into mysql-trunk-merge.Davi Arnaut2010-07-152-2/+2
| |\ \
| | * | Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabledDavi Arnaut2010-07-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Essentially, the problem is that safemalloc is excruciatingly slow as it checks all allocated blocks for overrun at each memory management primitive, yielding a almost exponential slowdown for the memory management functions (malloc, realloc, free). The overrun check basically consists of verifying some bytes of a block for certain magic keys, which catches some simple forms of overrun. Another minor problem is violation of aliasing rules and that its own internal list of blocks is prone to corruption. Another issue with safemalloc is rather the maintenance cost as the tool has a significant impact on the server code. Given the magnitude of memory debuggers available nowadays, especially those that are provided with the platform malloc implementation, maintenance of a in-house and largely obsolete memory debugger becomes a burden that is not worth the effort due to its slowness and lack of support for detecting more common forms of heap corruption. Since there are third-party tools that can provide the same functionality at a lower or comparable performance cost, the solution is to simply remove safemalloc. Third-party tools can provide the same functionality at a lower or comparable performance cost. The removal of safemalloc also allows a simplification of the malloc wrappers, removing quite a bit of kludge: redefinition of my_malloc, my_free and the removal of the unused second argument of my_free. Since free() always check whether the supplied pointer is null, redudant checks are also removed. Also, this patch adds unit testing for my_malloc and moves my_realloc implementation into the same file as the other memory allocation primitives.
| * | | Merge of mysql-5.1-bugteam into mysql-trunk-merge.Davi Arnaut2010-07-092-4/+4
| |\ \ \ | | |/ / | |/| / | | |/
| | * Bug#53445: Build with -Wall and fix warnings that it generatesDavi Arnaut2010-07-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a MySQL maintainer/developer mode that enables a set of warning options for the C/C++ compiler. This mode is intended to help improve the overall quality of the code. The warning options are: C_WARNINGS="-Wall -Wextra -Wunused -Wwrite-strings -Werror" CXX_WARNINGS="$C_WARNINGS -Wno-unused-parameter" Since -Wall is essentially a moving target, autoconf checks are not run with warning options enabled, in particualr -Werror. This decision might be revisited in the future. The patch also fixes a mistake in the makefiles, where automake CXXFLAGS would be set to CFLAGS.
| * | mergeDaniel Fischer2010-06-182-2/+4
| |\ \
| | * | fix syntax errorJonathan Perkin2010-05-051-1/+1
| | | |
| | * | Build all plugins.Jonathan Perkin2010-05-053-4/+6
| | | | | | | | | | | | | | | | Try to fix ia64/icc builds.
| * | | Post-merge fix: header is used by the client API. Obvious in retrospect.Davi Arnaut2010-06-051-1/+1
| | | | | | | | | | | | Also, update a few cases missed by the initial patch.
| * | | Bug#53445: Build with -Wall and fix warnings that it generatesDavi Arnaut2010-05-312-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix various mismatches between function's language linkage. Any particular function that is declared in C++ but should be callable from C must have C linkage. Note that function types with different linkages are also distinct. Thus, if a function type is declared in C code, it will have C linkage (same if declared in a extern "C" block).
| * | | Auto merge from 5.1-rep-semisyncHe Zhenxing2010-06-021-1/+2
| |\ \ \