summaryrefslogtreecommitdiff
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \ \
| * | | Post fix for bug#52748He Zhenxing2010-06-021-1/+2
| | | |
* | | | BUG#52748 Semi-Sync ACK packet isn't check for lengthHe Zhenxing2010-06-011-4/+14
|\ \ \ \ | |/ / / | | | | Check the length and use strncpy to make the code safer.
| * | | BUG#52748 Semi-Sync ACK packet isn't check for lengthHe Zhenxing2010-06-011-4/+14
| | | | | | | | | | | | Check the length and use strncpy to make the code safer.
* | | | Fix HP-UX localtime_r issue correctly, patch from mats.Jonathan Perkin2010-05-271-2/+1
| | | |
* | | | Pull in time.h for localtime_r.Jonathan Perkin2010-05-251-0/+1
| | | |
* | | | Another incarnation of the patch for Bug#30708Alexander Nozdrin2010-05-193-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (make relies GNU extentions). The patch was partially backport from 6.0. Original comment: bug#30708: make relies GNU extensions. Now that we no longer use BitKeeper we can safely remove the SCCS handling with no loss of functionality.
* | | | Revert back to new CMake names for audit_null/daemon_example plugins.Jonathan Perkin2010-05-122-4/+2
| | | |
* | | | Changes to build using CMake according to existing release packages:Jonathan Perkin2010-05-123-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Update/fix file layouts for each package type, add new types for native package formats including deb, rpm and svr4. - Build all plugins, including debug versions - Update compiler flags to match current release - Add missing @VAR@ expansions - Install correct mysqclient library symlinks - Fix icc/ia64 builds - Fix install of libmysqld-debug - Don't include mysql_embedded - Remove unpackaged manual pages to avoid missing files warnings - Don't install mtr's test suite
* | | | Merge fixes for BUG46587 and BUG47059 to trunk-bugfixing.Sergey Vojtovich2010-04-151-10/+38
|\ \ \ \
| * | | | BUG#47059 - In audit plugin I cannot see the event subclasses,Sergey Vojtovich2010-04-151-10/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e.g.MYSQL_AUDIT_GENERAL_ERROR General audit API (MYSQL_AUDIT_GENERAL_CLASS) didn't expose event subclass to plugins. This patch exposes event subclass to plugins via struct mysql_event_general::event_subclass. This change is not compatible with existing general audit plugins. Audit interface major version has been incremented.
* | | | | WL#5030: Split and remove mysql_priv.hMats Kindahl2010-03-314-2/+10
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch: - Moves all definitions from the mysql_priv.h file into header files for the component where the variable is defined - Creates header files if the component lacks one - Eliminates all include directives from mysql_priv.h - Eliminates all circular include cycles - Rename time.cc to sql_time.cc - Rename mysql_priv.h to sql_priv.h
* | | | Automerge the bug#49022 fix correction into next-mr-bugfixing.Joerg Bruehe2010-03-121-1/+1
|\ \ \ \
| * | | | Fix for the bug#49022 patch, detected by further testing.Joerg Bruehe2010-03-111-1/+1
| | | | |
* | | | | Auto mergeHe Zhenxing2010-03-111-1/+6
|\ \ \ \ \ | |/ / / /
| * | | | Part of the fixes for bug#49022Joerg Bruehe2010-03-101-1/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Plugins included into bin release cannot be installed on debug version of server IF the build process was split into separate "debug" and "optimized" builds AND the plugin files of the debug build got copied into "plugin/debug/" (both is done for MySQL release builds starting from 5.5.3), THEN these debug plugin files are to be included in the final binary package. This change deals with the inclusion only, the other parts are done in different changesets.
* | | | Auto merge from 5.1-rep-semisyncHe Zhenxing2010-03-111-126/+84
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | Post fix for Bug#49557He Zhenxing2010-03-101-1/+2
| | |
| * | Bug#49557 "semisync" plugin test fails on WindowsHe Zhenxing2010-02-231-126/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was because the gettimeofday function was incorrect implemented for Windows, and so the semisync master did not wait for slave reply properly on Windows. Fixed by removing the gettimeofday function for Windows, and using set_timespec function to get current time for all platforms.
* | | Fix truncated GPL text.Jonathan Perkin2010-02-261-1/+1
| | |
* | | mergeVladislav Vaintroub2010-02-132-36/+272
|\ \ \
| * \ \ Manual Merge for bug#501572010-01-312-36/+272
| |\ \ \ | | |/ /
| | * | BUG#50157 Assertion !active_tranxs_->is_tranx_end_pos(..) in ↵2010-01-312-36/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ReplSemiSyncMaster::commitTrx The root cause of the crash is that a TranxNode is freed before it is used. A TranxNode is allocated and inserted into the active list each time a log event is written and flushed into the binlog file. The memory for TranxNode is allocated with thd_alloc and will be freed at the end of the statement. The after_commit/after_rollback callback was supposed to be called before the end of each statement and remove the node from the active list. However this assumption is not correct in all cases(e.g. call 'CREATE TEMPORARY TABLE myisam_t SELECT * FROM innodb_t' in a transaction and delete all temporary tables automatically when a session closed), and can cause the memory allocated for TranxNode be freed before it was removed from the active list. So The TranxNode pointer in the active list would become a wild pointer and cause the crash. After this patch, We have a class called a TranxNodeAllocate which manages the memory for allocating and freeing TranxNode. It uses my_malloc to allocate memory.
* | | | Cleanup casing in MYSQL_ADD_PLUGIN, patch provided by KentVladislav Vaintroub2010-02-012-2/+2
| | | |
* | | | add CMakeLists.txt to EXTRA_DIST for audit_nullVladislav Vaintroub2010-01-261-1/+1
| | | |
* | | | merge, add plugin/audit_null/CMakeLists.txtVladislav Vaintroub2010-01-264-0/+182
|\ \ \ \ | |/ / /
| * | | Merge backport of WL#3771 with mysql-next-mr.Sergey Vojtovich2010-01-193-0/+166
| |\ \ \
| | * | | Backport from 6.0-codebase.Sergey Vojtovich2009-12-153-0/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WL#3771 "Audit Plugin Interface" Implement new plug-in type - AUDIT New plug-in: audit_null simply increments counter for how many times it was called.
| * | | | Auto-merge from mysql-next-mr.Alexander Nozdrin2009-12-193-16/+58
| |\ \ \ \
| * \ \ \ \ mergeVladislav Vaintroub2009-12-181-3/+0
| |\ \ \ \ \ | | |_|/ / / | |/| | | |
| | * | | | Bug #49811: inconsistent usage of SAFEMALLOC in debug compilation on windowsVladislav Vaintroub2009-12-181-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | Remove per-project SAFEMALLOCs definitions, as they result in malloc/free mismatches.
| | * | | | Backporing patch for Bug#48351 (Inconsistent library names for semisync plugin)Alexander Nozdrin2009-12-152-10/+10
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from mysql-next-mr-bugfixing to mysql-trunk-bugfixing. Original revision: ------------------------------------------------------------ revision-id: zhenxing.he@sun.com-20091127084945-wng7gakygduv3q8k committer: He Zhenxing <zhenxing.he@sun.com> branch nick: 5.1-rep-semisync timestamp: Fri 2009-11-27 16:49:45 +0800 message: Bug#48351 Inconsistent library names for semisync plugin The semisync plugin library names on Unix like systems were prefixed with 'lib', which did not follow the conventions. Fix the problem by removing the 'lib' prefix on Unix systems. ------------------------------------------------------------