mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
6cb88685c4
mariabackup deallocated uninitialized write_filt_ctxt.u.wf_incremental_ctxt in xtrabackup_copy_datafile() when some table should be skipped due to parsed DDL redo log record.
55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
|
|
#ifndef XTRABACKUP_BACKUP_COPY_H
|
|
#define XTRABACKUP_BACKUP_COPY_H
|
|
|
|
#include <my_global.h>
|
|
#include <mysql.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);
|
|
|
|
/** Start --backup */
|
|
bool backup_start();
|
|
/** Release resources after backup_start() */
|
|
void backup_release();
|
|
/** Finish after backup_start() and backup_release() */
|
|
bool backup_finish();
|
|
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
|