| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
* Start_encryption_log_event
* --encrypt-binlog command line option
based on google patches.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
now when my_vsnprintf() supports %llu for a few years already.
|
|
|
|
|
|
|
|
| |
commit f1abd015dcec3c1347e96e6197db8fd05c021537
Author: Andrei Elkin <aelkin@mysql.com>
Date: Thu Nov 12 17:10:19 2009 +0200
Bug #47210 first execution of "start slave until" stops too early
|
|
|
|
|
|
|
| |
introduce DBUG_DUMP_EVENT_BUF,
remove few unused DBUG_EXECUTE_IF's
simplify few DBUG_PRINT's
remove few redundant #ifndef DBUG_OFF's
|
|
|
|
|
|
| |
* replace binlog positions where they are calculated
(instead of --disable_query_log)
* don't replace binlog positions when they're hard-coded anyway
|
|
|
|
|
|
|
|
|
| |
1. use include/show_binlog_events.inc instead of SHOW BINLOG EVENTS
2. use include/show_relaylog_eventc.inc too
3. in all other places where a number might appear in the result
file, include binlog_start_pos.inc, calculate the position
like pos=`select $binlog_start_pos + 100`; and use
replace_result $pos <pos>
|
|
|
|
| |
and fix SHOW RELAYLOG 'src_name' EVENTS to respect src_name
|
|
|
|
|
| |
smaller a simpler way to ensure that checksum never sees
LOG_EVENT_BINLOG_IN_USE_F flag
|
| |
|
|
|
|
|
|
| |
* fix unireg.h includes
* use enum_binlog_checksum_alg for binlog checksum variables,
not uint8
|
| |
|
| |
|
|
|
|
|
|
|
| |
* reformat long lines
* remove useless 'const'
* remove unneeded do { ... } while(false} wrapper
* remove unneeded method
|
|
|
|
|
|
|
|
|
|
|
| |
There are three Log_event::read_log_event() methods:
1. read the event image from IO_CACHE into String
2. create Log_event from the in-memory event image
3. read the event image from IO_CACHE and create Log_event
The 3rd was reading event image into memory and invoking the 2nd to
create Log_event. Now the 3rd also uses the 1st to read the event image
from IO_CACHE into memory, instead of duplicating its functionality.
|
|
|
|
|
| |
remove my_crc_dbug_check (gdb can do it itself),
add crc_0 constant, as it's needed quite often
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of encrypt(src, dst, key, iv) that encrypts all
data in one go, now we have encrypt_init(key,iv),
encrypt_update(src,dst), and encrypt_finish(dst).
This also causes collateral changes in the internal my_crypt.cc
encryption functions and in the encryption service.
There are wrappers to provide the old all-at-once encryption
functionality. But binlog events are often written piecewise,
they'll need the new api.
|
| |
|
|
|
|
|
| |
Rename reassociate to reset and create an inverse method release.
Method names are chosen to match std::unique_ptr methods.
|
| |
|
| |
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This bug is essentially another variant of MDEV-7458.
If a transaction conflict caused a deadlock kill of T2 in record_gtid()
during commit, the code would do a rollback _before_ running
rgi->unmark_start_commit(). This creates a race where following transactions
could start too early (before T2 has completed its transaction retry). This
in turn could lead to replication failure, if there was a conflict that
caused eg. duplicate key error or similar.
The fix is to remove these rollbacks (in Query_log_event::do_apply_event()
and Xid_log_event::do_apply_event(). They seem out-of-place; code in
log_event.cc generally does not roll back on error, this is handled higher
up.
In addition, because of the extreme difficulty of reproducing bugs like
MDEV-7458 and MDEV-8302, this patch adds some extra precations to try to
detect (in debug builds) or prevent (in release builds) similar bugs.
ha_rollback_trans() will now call unmark_start_commit() if needed (and
assert in debug build when a caller does rollback without unmark first).
We also add an extra check for thd->killed() so that we avoid doing
mark_start_commit() if we already have a pending deadlock kill.
And we add a missing unmark_start_commit() call in the error case, found by
the above assertion.
|
| |
| |
| |
| |
| | |
Attempting to kill query owned by different user now returns better error:
"You are not owner of query N" instead of "You are not owner of thread N".
|
|\ \ |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
as a workaround until the bug is fixed
don't run mroonga tests in --embedded mode by default
|
| | |
| | |
| | |
| | |
| | | |
WARN_DEPRECATED_NO_REPLACEMENT(NULL, ...) was causing a warning,
because it expanded into NULL->variables.errmsgs[...]
|
| |\ \ |
|
| | | | |
|
| |\ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
because the actual merge was already done in
dced5146bdfc46e200ba35a86c3c55fb60972e33
as a patch
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Enable replication of GRANT/REVOKE ROLE commands across
galera nodes.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Remove master-bin.state file on joiner node during SST.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Try not to release 0 (STDIN_FILENO) file descriptor as it can
incorrectly get reused by streams opened later.
|
| | | | | |
|
| | |\ \ \ |
|
| | | | | | |
|
| | | |\ \ \ |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
* Wait for aborted thd (victim) to release MDL locks
* Skip aborting an already aborted thd
* Defer setting OK status in case of CTAS
* Minor cosmetic changes
* Added a test case
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Add SELinux policy and AppArmor profile under policy/.
|
| | |\ \ \ \ \
| | | | |_|_|/
| | | |/| | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Set thd's state to 'committed' only after it has done closing tables
(called indirectly by relay_group_info::cleanup_context()).
|
| | |\ \ \ \ \
| | | | |/ / /
| | | |/| | | |
|