mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
51 lines
1.4 KiB
C
51 lines
1.4 KiB
C
|
|
#ifndef XTRABACKUP_BACKUP_COPY_H
|
|
#define XTRABACKUP_BACKUP_COPY_H
|
|
|
|
#include <my_global.h>
|
|
#include <mysql.h>
|
|
#include "datasink.h"
|
|
|
|
/* special files, backward compatibility */
|
|
#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"
|
|
#define XTRABACKUP_METADATA_FILENAME "xtrabackup_checkpoints"
|
|
|
|
/* special files */
|
|
#define MB_SLAVE_INFO "mariadb_backup_slave_info"
|
|
#define MB_GALERA_INFO "mariadb_backup_galera_info"
|
|
#define MB_BINLOG_INFO "mariadb_backup_binlog_info"
|
|
#define MB_INFO "mariadb_backup_info"
|
|
#define MB_METADATA_FILENAME "mariadb_backup_checkpoints"
|
|
|
|
extern bool binlog_locked;
|
|
|
|
/************************************************************************
|
|
Return true if first and second arguments are the same path. */
|
|
bool
|
|
equal_paths(const char *first, const char *second);
|
|
|
|
/** Start --backup */
|
|
bool backup_start(ds_ctxt *ds_data, ds_ctxt *ds_meta,
|
|
CorruptedPages &corrupted_pages);
|
|
/** Release resources after backup_start() */
|
|
void backup_release();
|
|
/** Finish after backup_start() and backup_release() */
|
|
bool backup_finish(ds_ctxt *ds_data);
|
|
bool
|
|
apply_log_finish();
|
|
bool
|
|
copy_back();
|
|
bool
|
|
decrypt_decompress();
|
|
bool
|
|
is_path_separator(char);
|
|
bool
|
|
directory_exists(const char *dir, bool create);
|
|
|
|
lsn_t
|
|
get_current_lsn(MYSQL *connection);
|
|
|
|
#endif
|