summaryrefslogtreecommitdiff
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-7596 audit plugin - record full query / document line length / make ↵Alexey Botchkov2015-03-311-28/+102
| | | | | | | buffer configurable. The serve_audit_query_log_limit variable implemented. Also QUERY_DCL filter added.
* MDEV-7641 Server crash on set global server_audit_incl_users=null.Alexey Botchkov2015-03-191-7/+12
| | | | | plugin_variable_update() can get NULL as a value for a string parameter. Needs to be checked and handled properly.
* Audit plugin v1.2.0.Alexey Botchkov2015-02-081-18/+541
|
* compilation fix for perl-Net-HandlerSocketSergei Golubchik2014-10-081-6/+3
|
* MDEV-6800 auth_socket plugin fails to build on OpenBSD with MariaDB 10.0.14Sergei Golubchik2014-10-021-1/+1
| | | | typo (thanks, Brad Smith!)
* MDEV-5120 Test suite test maria-no-logging failsSergei Golubchik2014-10-026-0/+12
| | | | | | | | stat structure (from <sys/stat.h>) is conditionally defined to have different layout and size depending on the defined macros. The correct macro is defined in my_config.h, which means it MUST be included first (or, at least before <features.h> - so, practically, before including any system headers).
* MDEV-6577 auth_socket.so does not build in kFreeBSDSergei Golubchik2014-09-062-14/+65
| | | | if it has to be a mess of ifdefs, then mess of ifdefs it is
* mysql-5.5.39 mergeSergei Golubchik2014-08-021-1/+0
|\ | | | | | | | | | | | | ~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
* | MDEV-6124 Audit plugin fails with the Percona-Server 5.6.Alexey Botchkov2014-04-171-1/+1
| | | | | | | | | | | | Some lines of code in file_logger.c were lost while moving to the general MariaDB tree. Adding them.
* | mysql-5.5.37 selective mergeSergei Golubchik2014-03-273-0/+3
|\ \ | |/
| * Updated/added copyright header. Added line "use is subject to license terms" Murthy Narkedimilli2014-02-173-0/+3
| | | | | | | | | | to copyright header.
* | MDEV-5862 server_audit test fails in buildbot on Mac (labrador).Alexey Botchkov2014-03-231-5/+24
| | | | | | | | | | | | | | | | The RTLD_DEFAULT value on Labrador machine is not NULL, so the dlsym() commands in the server_audit just fail to bind the necessary functions. Fixed by using RTLD_DEFAULT explicitly.
* | Fixed some buildbot failuresMichael Widenius2014-03-181-2/+14
| | | | | | | | | | | | | | | | | | mysql-test/suite/rpl/t/rpl_000011-master.opt: Added master.opt file to ensure that other tests don't interfere with rpl_000011 plugin/server_audit/server_audit.c: Fixed compiler error on solaris support-files/compiler_warnings.supp: Ignore warning from xtradb
* | MDEV-5681 audit log will not rotate when the file size exceeds global ↵Alexey Botchkov2014-03-171-2/+50
| | | | | | | | | | | | | | | | | | | | | | variable setting. Notifications about changed variables: server_audit_file_rotate_now server_audit_file_rotations server_audit_file_rotations are now handled and one doesn't need to stop/start logging to make them effective.
* | MariaDB Audit plugin added.Alexey Botchkov2014-02-243-0/+2191
| |
* | MDEV-5654 Server crashes on second installation of daemon_example pluginSergei Golubchik2014-02-171-0/+1
| | | | | | | | daemon plugin: join the thread to make sure it exits before the plugin is unloaded
* | MySQL-5.5.36 mergeSergei Golubchik2014-02-171-1/+1
|\ \ | |/ | | | | (without few incorrect bugfixes and with 1250 files where only a copyright year was changed)
* | MySQL-5.5.35 mergeSergei Golubchik2014-01-222-15/+17
|\ \ | |/
| * 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_". plugin/semisync/semisync_master.cc: Added check for the existence of valid 'active_transx_'.
* | Update feedback plugin to recognize Windows 8.1 / Windows Server 2012 R2.Vladislav Vaintroub2013-09-201-1/+5
| |
* | MDEV-4941 make: AIX fails with 'Identifier not allowed in cast'; syntax ↵Sergei Golubchik2013-09-091-8/+8
| | | | | | | | | | | | error in include/my_global.h C++ comments in C files, and a typo in my_global.h
* | MDEV-4472 Audit-plugin. Server-related part of the task.Alexey Botchkov2013-09-095-322/+3
| | | | | | | | | | | | | | | | | | 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'.
* | MDEV-4926: Remove division-using-subtraction implementation from semi-sync ↵Vladislav Vaintroub2013-09-031-9/+5
| | | | | | | | | | | | | | | | | | plugin If rpl_semi_sync_master_timeout is large, calculation of absolute waiting time in semi-sync plugin is inefficient. This error is specific to systems with 64 bit long values (all 64 bit Unixes) In rpl_semi_sync_master_timeout has maximal value (= MAX_ULONGLONG), calculating abstime may require ~ 18 billion subtract operations. The fix is to use division instead of subtraction-in-a-loop. Also fixed an integer overflow bug.
* | mysql-5.5.32 mergeSergei Golubchik2013-07-167-7/+7
|\ \ | |/
* | Merge from 5.3Alexander Barkov2013-07-101-1/+1
|\ \
| * \ Merge from 5.2Alexander Barkov2013-07-091-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modified: mysql-test/suite/plugins/r/fulltext_plugin.result mysql-test/suite/plugins/t/fulltext_plugin.test plugin/fulltext/plugin_example.c sql/sql_show.cc pending merges: Alexander Barkov 2013-07-09 [merge] Merge from 5.1 Sergei Golubchik 2013-07-06 Bug #69682 - mysqld crashes after uninst... Sergei Golubchik 2013-05-24 MDEV-4575 MySQL client doesn't strip off...
| | * \ Merge from 5.1Alexander Barkov2013-07-091-1/+1
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modified: mysql-test/suite/plugins/r/fulltext_plugin.result mysql-test/suite/plugins/t/fulltext_plugin.test plugin/fulltext/plugin_example.c sql/sql_show.cc pending merges: Sergei Golubchik 2013-07-06 Bug #69682 - mysqld crashes after uninstall ... Sergei Golubchik 2013-05-24 MDEV-4575 MySQL client doesn't strip off...
| | | * | Bug #69682 - mysqld crashes after uninstall of plugin with "first" status varSergei Golubchik2013-07-061-1/+1
| | | | |
* | | | | MDEV-4685 Compile error on LFSSergei Golubchik2013-06-222-0/+10
| | | | | | | | | | | | | | | | | | | | fix the code to compile w/o perfomance schema
* | | | | MDEV-4636 use mysql_cleartext_plugin from auth_pamSergei Golubchik2013-06-111-2/+23
| | | | | | | | | | | | | | | | | | | | add a new command-line option --pam-use-cleartext-plugin
* | | | | MDEV-4516 SELECT from I_S.QUERY_CACHE_INFO produces ER_UNKNOWN_ERROR when ↵Sergei Golubchik2013-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | query cache size is 0 if qc->try_lock() fails, it's not an error
* | | | | Fix build on WindowsVladislav Vaintroub2013-04-251-0/+4
| | | | |
* | | | | MDEV-260 auditing table accessesSergei Golubchik2013-04-191-24/+65
| | | | |
* | | | | compilation warningsSergei Golubchik2013-04-041-6/+6
| | | | |
* | | | | MDEV-4307 Support at least 48 utf8 characters in username in server and PAMSergei Golubchik2013-03-262-0/+93
| | | | | | | | | | | | | | | | | | | | | | | | | Extend plugin auth api to support up to 512 bytes in the user names. Use the API versioning to support old auth plugins too!
* | | | | MDEV-249 QUERY CACHE INFORMATIONSergei Golubchik2013-03-202-0/+217
| | | | |
* | | | | MDEV-4175 auth_socket to build on OpenBSD / BitrigSergei Golubchik2013-03-081-1/+13
| | | | |
* | | | | 5.3 mergeSergei Golubchik2013-01-151-0/+6
|\ \ \ \ \ | |/ / / /
| * | | | 5.2->5.3 mergeSergei Golubchik2013-01-102-0/+9
| |\ \ \ \ | | |/ / /
| | * | | Fix broken feedback plugin after MDEV-712.Vladislav Vaintroub2012-11-261-0/+3
| | | | | | | | | | | | | | | | | | | | Link feedback plugin with yassl libraries, if with-ssl=bundled is used, since mysqld does not export SSL symbols anymore.
| | * | | merge 5.1Vladislav Vaintroub2012-11-221-0/+6
| | |\ \ \ | | | |/ /
| | | * | Feedback plugin now recognizes Windows 8 / Windows Server 2012.Vladislav Vaintroub2012-11-221-0/+6
| | | | |
* | | | | 5.3->5.5 mergeSergei Golubchik2012-11-221-3/+6
|\ \ \ \ \ | |/ / / /
| * | | | Merge MariaDB 5.2->5.3unknown2012-11-201-3/+6
| |\ \ \ \ | | |/ / /
| | * | | Merge MariaDB 5.1->5.2.unknown2012-11-201-3/+6
| | |\ \ \ | | | |/ /
| | | * | potential crash in the feedback pluginSergei Golubchik2012-11-191-3/+6
| | | | |
* | | | | rename plugin null_audit -> audit_null (to match status variable names)Sergei Golubchik2012-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | create audit_null.test
* | | | | build feedback plugin with ssl (changes for cmake).Sergei Golubchik2012-11-062-15/+24
| | | | | | | | | | | | | | | | | | | | fix the ssl related code to use newer function prototypes