summaryrefslogtreecommitdiff
path: root/sql/wsrep_binlog.cc
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-22021: Galera database could get inconsistent with rollback to savepointmkaruza2020-03-311-14/+0
| | | | | | When binlog is disabled, WSREP will not behave correctly when SAVEPOINT ROLLBACK is executed since we don't register handlers for such case. Fixed by registering WSREP handlerton for SAVEPOINT related commands.
* 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 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.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
| |
* | 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.
* | 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.