Created by Sergei Glushchenko and last modified
Get this branch:
bzr branch lp:~sergei.glushchenko/percona-xtrabackup/2.2-xb-bug1395143
Only Sergei Glushchenko can upload to this branch. If you are Sergei Glushchenko please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Recent revisions

5048. By Sergei Glushchenko

Bug 1395143: Multiple memory leaks detected by AddressSanitizer

Following leaks fixed:

- Memory allocated for pmap_cur in page_map_file_open was never
- Memory allocated for ivbuffer in xb_crypt_read_open was never
- Doublewrite buffer allocated in open_or_create_data_files was
not released after xtrabackup applied incremental deltas.
- dst_log_file was never released.
- fil_system was never released.
- Memory allocated in innodb_init_param was not released after
apply-log stage.
- Race condition in xbstream_open led to stream_ctxt->dest_file
being leaked.
- Similar race condition fixed in ds_archive.

5047. By Alexey Kopytov

Bug #1366065: Exporting tables is inefficient when backup contains a
              large (and unrelated) change buffer

Merged a patch contributed by Davi Arnaut:

XtraBackup is quite efficient at exporting tables from a backup when it
contains a large change buffer (aka insert buffer) that is mostly
composed of changes to tables other than the tables being exported.

The problem arises from the need to merge change buffer entries when
exporting tables. In order to accomplish this, XtraBackup relies on a
normal InnoDB shutdown that merges pending change buffer entries. The
problem is that this background merging does random dives into the
change buffer index (see ibuf_merge_pages), making the process rather
inefficient if most of the entries in the change buffer are for tables
that are not even part of the backup.

An easy solution is to simply discard all change buffer entries for an
inexistent (deleted) tablespace once the first entry for such tablespace
is found. Ideally and if possible, make export akin to FLUSH TABLES FOR
EXPORT and do a fast shutdown.

5046. By Alexey Kopytov

Empty merge from 2.1.

5044. By Alexey Kopytov

Bug #1386157: Memory leaks in gen_lex_hash.cc

Free hash_map before resetting it to 0.

5041. By Alexey Kopytov

Bug #1372679: innobackupex --slave-info doesn't handle

Changed innobackupex to fail with an error when --slave-info is used on
a multi-threaded non-GTID slave, because Exec_Master_Log_Pos cannot be
trusted for a multi-threaded slave.

5039. By Alexey Kopytov

Updated server versions in bootstrap.sh to latest releases.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.