summaryrefslogtreecommitdiff
path: root/sql/wsrep_binlog.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.2 into 10.3Marko Mäkelä2019-05-141-1/+1
|\
| * Merge 10.1 into 10.2Marko Mäkelä2019-05-131-1/+1
| |\
| | * Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-111-1/+1
| | |
* | | Merge remote-tracking branch 'origin/10.2' into 10.3Alexander Barkov2019-03-221-1/+0
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2019-03-221-1/+0
| |\ \ | | |/
| | * Fix USE_AFTER_FREE (CWE-672)FaramosCZ2019-03-221-1/+0
| | | | | | | | | The file will be closed on line 540
* | | Merge 10.2 into 10.3Marko Mäkelä2018-08-031-10/+42
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2018-08-021-10/+42
| |\ \ | | |/
| | * MDEV-16777: galera.galera_gra_log fails with File ...GRA_*.log not found errorSergei Petrunia2018-07-191-3/+11
| | | | | | | | | | | | | | | | | | | | | snprintf returns the number of bytes it wrote (or would have written) NOT counting the \0 terminal character. The buffer size it accepts as argument DOES COUNT the \0 character. Pass the right parameter value.
| | * Post-fix to "Adopt Debian's fix-FTBFS-on-GNU-Hurd.patch", part #2.Sergei Petrunia2018-07-021-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | "my_snprintf(NULL, 0, ...)" does not follow what snprintf does. Change the call in wsrep_dump_rbr_buf_with_header to use snprintf (note that wsrep_dump_rbr_buf was using snprintf all the way). Fix an off-by-one error in comparison so it actually prints the output
| | * Fix a typo a in the commit before the last oneSergei Petrunia2018-06-291-1/+1
| | | | | | | | | | | | | | | in the "Adopt Debian's fix-FTBFS-on-GNU-Hurd.patch", DBUG_VOID_RETURN has been used instead of "return"
| | * Adopt Debian's fix-FTBFS-on-GNU-Hurd.patch.Sergei Petrunia2018-06-291-9/+34
| | | | | | | | | | | | | | | | | | | | | - Took the original patch by Ondrej Sury; - Applied a fix for a known problem in the patch: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882062 - Fixed a few other issues
| * | Merge branch '10.1' into 10.2Vicențiu Ciorbaru2017-09-201-1/+1
| |\ \ | | |/
| | * MDEV-13850: Uninitialized variable at wsrep_binlog.cc:455Jan Lindström2017-09-201-1/+1
| | |
* | | Add likely/unlikely to speed up executionMonty2018-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added to: - if (error) - Lex - sql_yacc.yy and sql_yacc_ora.yy - In header files to alloc() calls - Added thd argument to thd_net_is_killed()
* | | Changed database, tablename and alias to be LEX_CSTRINGMonty2018-01-301-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was done in, among other things: - thd->db and thd->db_length - TABLE_LIST tablename, db, alias and schema_name - Audit plugin database name - lex->db - All db and table names in Alter_table_ctx - st_select_lex db Other things: - Changed a lot of functions to take const LEX_CSTRING* as argument for db, table_name and alias. See init_one_table() as an example. - Changed some function arguments from LEX_CSTRING to const LEX_CSTRING - Changed some lists from LEX_STRING to LEX_CSTRING - threads_mysql.result changed because process list_db wasn't always correctly updated - New append_identifier() function that takes LEX_CSTRING* as arguments - Added new element tmp_buff to Alter_table_ctx to separate temp name handling from temporary space - Ensure we store the length after my_casedn_str() of table/db names - Removed not used version of rename_table_in_stat_tables() - Changed Natural_join_column::table_name and db_name() to never return NULL (used for print) - thd->get_db() now returns db as a printable string (thd->db.str or "")
* | | Enusure that my_global.h is included firstMichael Widenius2017-08-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added sql/mariadb.h file that should be included first by files in sql directory, if sql_plugin.h is not used (sql_plugin.h adds SHOW variables that must be done before my_global.h is included) - Removed a lot of include my_global.h from include files - Removed include's of some files that my_global.h automatically includes - Removed duplicated include's of my_sys.h - Replaced include my_config.h with my_global.h
* | | Fixed compiler warnings and warnings from build.tagsMonty2017-05-081-1/+1
| | | | | | | | | | | | | | | | | | | | | Other things - Ensure that ut_d() is set to EXPR if ut_ad() is DEBUG_ASSERT() If not, we will get a crash in purge_sys_t::~purge_sys_t() as this ut_ad() code expect's that the ut_d() codes has been executed
* | | Merge remote-tracking branch 'origin/10.2' into bb-10.2-extAlexander Barkov2017-04-131-1/+5
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2017-04-061-1/+5
| |\ \ | | |/
| | * fix warning "ignoring return value" of fwrite.Jan Lindström2017-04-051-1/+5
| | | | | | | | | | | | | | | | | | Merge pull request https://github.com/MariaDB/server/pull/343 contributed by Eric Herman.
* | | MDEV-8203 Assert in Query_log_event::do_apply_event()Monty2017-04-071-1/+1
|/ / | | | | | | | | | | | | | | | | This happens because the master writes a table_map event to the binary log, but no row event. The slave has a check that there should always be a row event if there was a table_map event, which causes a crash. Fixed by remembering in the cache what kind of events are logged and ignore cached statements which is just a table map event.
* | Merge branch '10.1' into 10.2Sergei Golubchik2016-12-291-2/+15
|\ \ | |/
| * MDEV-11179: WSREP transaction excceded size limit in Galera clusterNirbhay Choubey2016-12-121-2/+15
| | | | | | | | | | | | | | | | | | | | ... causes MariaDB to crash On error, the wsrep replication buffer (binlog) is dumped to a file to aid investigations. In order to also include the binlog header, FDLE object is also needed. This object is only available for wsrep- threads. Fix: Instantiate an FDLE object for non-wsrep threads.
* | Changed my_thread_id to int64 to fix compilation problem withMonty2016-02-081-8/+8
|/ | | | | | my_atomic_add32_explicit on windows Fixed that server_audit.c also works if one compiles with safemalloc Fixed compiler warnings
* cleanup: Log_event::write() and MYSQL_BIN_LOG::write_cache()Sergei Golubchik2015-09-041-1/+2
| | | | | | | | | | | | Introduce Log_event_writer() that encapsulates writing data to an IO_CACHE with automatic checksum calculation. Now all events properly checksum themselves as needed. Use Log_event_writer in MYSQL_BIN_LOG::write_cache() instead of copy-pasting its logic all over. Later Log_event_writer will also do encryption.
* Update read_pos after reading from the cache.Nirbhay Choubey2015-07-141-4/+26
|
* my_b_fill, inline my_b_* functions instead of hairy macrosSergei Golubchik2015-06-021-4/+0
|
* misc IO_CACHE cleanupsSergei Golubchik2015-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * remove unused (and not implemented) WRITE_NET type * remove cast in my_b_write() macro. my_b_* macros are function-like, casts are responsibility of the caller * replace hackish _my_b_write(info,0,0) with the explicit my_b_flush_io_cache() in my_b_write_byte() * remove unused my_b_fill_cache() * replace pbool -> my_bool * make internal IO_CACHE functions static * reformat comments, correct typos, remove obsolete comments (ISAM) * assert valid cache type in init_functions() * use IO_ROUND_DN() macro where appropriate * remove unused DBUG_EXECUTE_IF in _my_b_cache_write() * remove unnecessary __attribute__((unused)) * fix goto error in parse_file.cc * remove redundant reinit_io_cache() in uniques.cc * don't do reinit_io_cache() if the cache was not initialized in ma_check.c * extract duplicate functionality from various _my_b_*_read functions into a common wrapper. Same for _my_b_*_write * create _my_b_cache_write_r instead of having if's in _my_b_cache_write (similar to existing _my_b_cache_read and _my_b_cache_read_r) * don't call mysql_file_write() from my_b_flush_io_cache(), call info->write_function() instead
* MDEV-7867: Add binlog header to GRA_.log fileNirbhay Choubey2015-04-011-1/+61
|
* MDEV-6247: Merge 10.0-galera to 10.1.Jan Lindström2014-08-261-0/+414
Merged lp:maria/maria-10.0-galera up to revision 3879. Added a new functions to handler API to forcefully abort_transaction, producing fake_trx_id, get_checkpoint and set_checkpoint for XA. These were added for future possiblity to add more storage engines that could use galera replication.