Add functionality to Percona Server and XtraBackup to support lightweight locks

Registered by Vadim Tkachenko

This is to implement support for backup locks in Percona XtraBackup. For the server-side part see https://blueprints.launchpad.net/percona-server/+spec/backup-locks

When backup locks are supported by the server, use the following procedure instead of FLUSH TABLES WITH READ LOCK.

# copy InnoDB data
LOCK TABLES FOR BACKUP;
# copy .frm, MyISAM, etc
LOCK BINLOG FOR BACKUP;
# finalize the background copy of REDO log
# get the binary log coordinates
UNLOCK BINLOG;
UNLOCK TABLES;

Blueprint information

Status:
Complete
Approver:
Alexey Kopytov
Priority:
Essential
Drafter:
Alexey Kopytov
Direction:
Approved
Assignee:
Alexey Kopytov
Definition:
Approved
Series goal:
Accepted for 2.2
Implementation:
Implemented
Milestone target:
milestone icon 2.2.1-alpha1
Started by
Alexey Kopytov
Completed by
Alexey Kopytov
(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.