summaryrefslogtreecommitdiff
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1joerg@debian.(none)2007-06-012-0/+6
|\ | | | | | | into debian.(none):/M51/merge-5.1
| * Makefile.am:kent@mysql.com/kent-amd64.(none)2007-05-282-0/+6
| | | | | | | | | | Consistent use of '%::SCCS/s.%' to prevent some 'make' implementations from trying to update files in SCCS directory
* | Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1jani@a88-113-38-195.elisa-laajakaista.fi2007-05-241-3/+3
|\ \ | |/ |/| | | into a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-marvel
| * WL#3817: Simplify string / memory area types and make things more consistent ↵monty@mysql.com/narttu.mysql.fi2007-05-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (first part) The following type conversions was done: - Changed byte to uchar - Changed gptr to uchar* - Change my_string to char * - Change my_size_t to size_t - Change size_s to size_t Removed declaration of byte, gptr, my_string, my_size_t and size_s. Following function parameter changes was done: - All string functions in mysys/strings was changed to use size_t instead of uint for string lengths. - All read()/write() functions changed to use size_t (including vio). - All protocoll functions changed to use size_t instead of uint - Functions that used a pointer to a string length was changed to use size_t* - Changed malloc(), free() and related functions from using gptr to use void * as this requires fewer casts in the code and is more in line with how the standard functions work. - Added extra length argument to dirname_part() to return the length of the created string. - Changed (at least) following functions to take uchar* as argument: - db_dump() - my_net_write() - net_write_command() - net_store_data() - DBUG_DUMP() - decimal2bin() & bin2decimal() - Changed my_compress() and my_uncompress() to use size_t. Changed one argument to my_uncompress() from a pointer to a value as we only return one value (makes function easier to use). - Changed type of 'pack_data' argument to packfrm() to avoid casts. - Changed in readfrm() and writefrom(), ha_discover and handler::discover() the type for argument 'frmdata' to uchar** to avoid casts. - Changed most Field functions to use uchar* instead of char* (reduced a lot of casts). - Changed field->val_xxx(xxx, new_ptr) to take const pointers. Other changes: - Removed a lot of not needed casts - Added a few new cast required by other changes - Added some cast to my_multi_malloc() arguments for safety (as string lengths needs to be uint, not size_t). - Fixed all calls to hash-get-key functions to use size_t*. (Needed to be done explicitely as this conflict was often hided by casting the function to hash_get_key). - Changed some buffers to memory regions to uchar* to avoid casts. - Changed some string lengths from uint to size_t. - Changed field->ptr to be uchar* instead of char*. This allowed us to get rid of a lot of casts. - Some changes from true -> TRUE, false -> FALSE, unsigned char -> uchar - Include zlib.h in some files as we needed declaration of crc32() - Changed MY_FILE_ERROR to be (size_t) -1. - Changed many variables to hold the result of my_read() / my_write() to be size_t. This was needed to properly detect errors (which are returned as (size_t) -1). - Removed some very old VMS code - Changed packfrm()/unpackfrm() to not be depending on uint size (portability fix) - Removed windows specific code to restore cursor position as this causes slowdown on windows and we should not mix read() and pread() calls anyway as this is not thread safe. Updated function comment to reflect this. Changed function that depended on original behavior of my_pwrite() to itself restore the cursor position (one such case). - Added some missing checking of return value of malloc(). - Changed definition of MOD_PAD_CHAR_TO_FULL_LENGTH to avoid 'long' overflow. - Changed type of table_def::m_size from my_size_t to ulong to reflect that m_size is the number of elements in the array, not a string/memory length. - Moved THD::max_row_length() to table.cc (as it's not depending on THD). Inlined max_row_length_blob() into this function. - More function comments - Fixed some compiler warnings when compiled without partitions. - Removed setting of LEX_STRING() arguments in declaration (portability fix). - Some trivial indentation/variable name changes. - Some trivial code simplifications: - Replaced some calls to alloc_root + memcpy to use strmake_root()/strdup_root(). - Changed some calls from memdup() to strmake() (Safety fix) - Simpler loops in client-simple.c
* | fixed: memleak in --help, sigsegv on shutdownserg@sergbook.mysql.com2007-04-261-2/+14
| | | | | | | | | | | | | | | | | | | | Ingo's patch: WL#2936 - Falcon & MySQL plugin interface: server variables Added initialization for plugin string variables with their default values. Added deallocation of string values before a plugin and its variables is deleted. Added examples to plugin_example
* | WL#2936 - Falcon & MySQL plugin interface: server variablesistruewing@chilla.local2007-04-241-2/+25
|/ | | | | | | Added initialization for the plugin structure created in plugin_add(). Made a correct argument vector in mysql_install_plugin(): handle_options() assumes that arg0 (program name) always exists.
* Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1jani@a88-113-38-195.elisa-laajakaista.fi2007-02-031-10/+16
|\ | | | | | | into a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1
| * Fixed problems detected by pushbuildmonty@mysql.com/narttu.mysql.fi2007-01-301-3/+3
| |
| * after merge fixesmonty@mysql.com/narttu.mysql.fi2007-01-291-2/+2
| | | | | | | | Removed
* | Made the example actually do something :)brian@zim.(none)2007-01-253-92/+201
|/ | | | It now demonstrates creating its own thread and shows off how to clean up after itself (creates a really simple heartbeat file)
* Many files:kent@mysql.com/kent-amd64.(none)2006-12-315-13/+43
| | | | | | | | | | Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header Added GPL copyright text my_vle.h, rpl_utility.h, my_vle.c, base64-t.c, rpl_utility.cc: Changed copyright header formatting some plugin_example.c, daemon_example.c: Added "Copyright (C) 2006 MySQL AB" to GPL header
* Many files:kent@mysql.com/kent-amd64.(none)2006-12-271-2/+1
| | | | Changed header to GPL version 2 only
* Merge bk-internal.mysql.com:/data0/bk/mysql-5.1baker@bk-internal.mysql.com2006-11-281-2/+2
|\ | | | | | | into bk-internal.mysql.com:/data0/bk/mysql-5.1-arch
| * Fixed a LOT of compiler warningsmonty@mysql.com/nosik.monty.fi2006-11-271-2/+2
| | | | | | | | | | | | | | Added missing DBUG_RETURN statements (in mysqldump.c) Added missing enums Fixed a lot of wrong DBUG_PRINT() statements, some of which could cause crashes Removed usage of %lld and %p in printf strings as these are not portable or produces different results on different systems.
* | Refactored a number of engines to have correct init/deinit. Added pass ↵brian@zim.(none)2006-11-191-2/+2
| | | | | | | | support for "data" from plugin to plugin generic init to use memory location.
* | This patch fixes the example engine, the example parser, and the example ↵brian@zim.(none)2006-11-1011-4/+142
|/ | | | daemon to compile. AKA You can now test that the interface is actually working :)
* Added license information display to output of plugins schema, and tagged ↵brian@zim.(none)2006-10-051-0/+1
| | | | all plugins with GPL flag.
* minor plugin api fixes:serg@janus.mylan2006-09-071-0/+4
| | | | | | remove #define __attribute__(A) from plugin.h increase API version because placeholders were added more robust definition of min_plugin_interface_version
* add 2 placeholder values for config and system variables.acurtis/antony@xiphis.org/ltantony.xiphis.org2006-08-301-1/+3
|
* Remove compiler warningsmonty@mysql.com2006-06-231-2/+4
| | | | Fixed wrong table flags type in ndbcluster that caused previous commit to fail
* Incompatible ftparser plugin API change.serg@serg.mylan2006-05-281-4/+1
| | | | | mysql_parse() and mysql_add_word() now take a MYSQL_FTPARSER_PARAM*, not a mysql_ftparam.
* BUG#19907 - simple_parser plugin cannot be installedsvoj@april.(none)2006-05-191-1/+1
| | | | | | | | The problem was that simple_parser was compiled as static plugin, which is intended to be linked into server, but not plugged. This patch makes simple_parser to be compiled as dynamic plugin by adding -DMYSQL_DYNAMIC_PLUGIN into CFLAGS.
* fixesserg@sergbook.mysql.com2006-04-302-41/+9
|
* make distcheck and cosmetic fixesserg@sergbook.mysql.com2006-04-291-3/+1
|
* Merge xiphis.org:/home/antony/work2/wl3201.3acurtis@xiphis.org2006-04-243-11/+67
|\ | | | | | | into xiphis.org:/home/antony/work2/wl3201.merge
| * WL#3201acurtis@xiphis.org2006-04-133-8/+69
| | | | | | | | " Configure support for server plugins "
* | fixes for 'make dist' and 'make distcheck'serg@serg.mylan2006-04-121-0/+5
|/
* plugin/fulltext/configure.inserg@serg.mylan2006-04-072-5/+7
| | | | | | no sense in building static library version of a plugin plugin/fulltext/plugin_example.c comments clarified. everything local to a plugin was declared static
* changes to make plugin_example useful as a template:serg@serg.mylan2006-04-066-0/+17
| | | | | force pkglibdir to be in "mysql" package, template files: AUTHORS, ChangeLog, NEWS, README, configure.in
* Makefile.am:kent@mysql.com2006-02-221-1/+1
| | | | | | Change for 'make distcheck' libmysqld.vcproj: Typo
* BUG#17117: header fille "plugin.h" does not have a namespace prefixsvoj@april.(none)2006-02-141-1/+1
| | | | plugin.h has been moved into include/mysql/plugin.h
* Fix another non-portable __attribute__knielsen@mysql.com2006-01-301-2/+1
|
* __attribute__ is (of course) not portableserg@serg.mylan2006-01-301-2/+1
|
* only use "public" types in plugin APIserg@serg.mylan2006-01-161-4/+3
|
* Fixed warnings.svoj@april.(none)2006-01-101-5/+7
|
* WL#2935 - SHOW STATUS support in pluginsserg@serg.mylan2006-01-071-1/+17
| | | | | | | | | | | The patch adds DYNAMIC_ARRAY all_status_vars, which is now the sole source of status information for SHOW STATUS. Status variables can be added to and removed from the array dynamically. SHOW STATUS command uses this array instead of static array from mysqld.cc Compatibility with the old, global list of status variables is preserved in init_server_components(), where this global list is simply appended to all_status_vars.
* cleanupserg@serg.mylan2006-01-041-3/+3
|
* WL#2575 - Fulltext: Parser plugin for FTSsvoj@mysql.com2005-12-283-0/+221
Manual merge.