diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2017-04-18 18:43:20 +0000 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-04-27 19:12:39 +0200 |
commit | d7714308e014a7335e1c0f60dc0afbf5eba5ff99 (patch) | |
tree | fcbbd1a871d35460389114be874b935e74b670df /extra/mariabackup/backup_copy.h | |
parent | 9c4b7cad279fde927c192a8928aa43cb751b2116 (diff) | |
download | mariadb-git-d7714308e014a7335e1c0f60dc0afbf5eba5ff99.tar.gz |
MDEV-9566 Add Percona Xtrabackup 2.3.7
Diffstat (limited to 'extra/mariabackup/backup_copy.h')
-rw-r--r-- | extra/mariabackup/backup_copy.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/extra/mariabackup/backup_copy.h b/extra/mariabackup/backup_copy.h new file mode 100644 index 00000000000..c8fc5fc8ba9 --- /dev/null +++ b/extra/mariabackup/backup_copy.h @@ -0,0 +1,51 @@ + +#ifndef XTRABACKUP_BACKUP_COPY_H +#define XTRABACKUP_BACKUP_COPY_H + +#include <my_global.h> +#include "datasink.h" + +/* special files */ +#define XTRABACKUP_SLAVE_INFO "xtrabackup_slave_info" +#define XTRABACKUP_GALERA_INFO "xtrabackup_galera_info" +#define XTRABACKUP_BINLOG_INFO "xtrabackup_binlog_info" +#define XTRABACKUP_INFO "xtrabackup_info" + +extern bool binlog_locked; + +bool +backup_file_printf(const char *filename, const char *fmt, ...) + ATTRIBUTE_FORMAT(printf, 2, 0); + +/************************************************************************ +Return true if first and second arguments are the same path. */ +bool +equal_paths(const char *first, const char *second); + +/************************************************************************ +Copy file for backup/restore. +@return true in case of success. */ +bool +copy_file(ds_ctxt_t *datasink, + const char *src_file_path, + const char *dst_file_path, + uint thread_n); + +bool +backup_start(); +bool +backup_finish(); +bool +apply_log_finish(); +bool +copy_back(); +bool +decrypt_decompress(); +void +version_check(); +bool +is_path_separator(char); +bool +directory_exists(const char *dir, bool create); + +#endif |