mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Merge 10.3 into 10.4
The MDEV-17262 commit 26432e49d3
was skipped. In Galera 4, the implementation would seem to require
changes to the streaming replication.
In the tests archive.rnd_pos main.profiling, disable_ps_protocol
for SHOW STATUS and SHOW PROFILE commands until MDEV-18974
has been fixed.
This commit is contained in:
commit
514b305dfb
152 changed files with 1636 additions and 966 deletions
|
|
@ -363,9 +363,6 @@ struct ddl_tracker_t {
|
|||
|
||||
static ddl_tracker_t ddl_tracker;
|
||||
|
||||
/* Whether xtrabackup_binlog_info should be created on recovery */
|
||||
static bool recover_binlog_info;
|
||||
|
||||
/* Simple datasink creation tracking...add datasinks in the reverse order you
|
||||
want them destroyed. */
|
||||
#define XTRABACKUP_MAX_DATASINKS 10
|
||||
|
|
@ -2012,7 +2009,6 @@ xtrabackup_read_metadata(char *filename)
|
|||
{
|
||||
FILE *fp;
|
||||
my_bool r = TRUE;
|
||||
int t;
|
||||
|
||||
fp = fopen(filename,"r");
|
||||
if(!fp) {
|
||||
|
|
@ -2043,9 +2039,6 @@ xtrabackup_read_metadata(char *filename)
|
|||
}
|
||||
/* Optional fields */
|
||||
|
||||
if (fscanf(fp, "recover_binlog_info = %d\n", &t) == 1) {
|
||||
recover_binlog_info = (t == 1);
|
||||
}
|
||||
end:
|
||||
fclose(fp);
|
||||
|
||||
|
|
@ -2064,13 +2057,11 @@ xtrabackup_print_metadata(char *buf, size_t buf_len)
|
|||
"backup_type = %s\n"
|
||||
"from_lsn = " UINT64PF "\n"
|
||||
"to_lsn = " UINT64PF "\n"
|
||||
"last_lsn = " UINT64PF "\n"
|
||||
"recover_binlog_info = %d\n",
|
||||
"last_lsn = " UINT64PF "\n",
|
||||
metadata_type,
|
||||
metadata_from_lsn,
|
||||
metadata_to_lsn,
|
||||
metadata_last_lsn,
|
||||
MY_TEST(opt_binlog_info == BINLOG_INFO_LOCKLESS));
|
||||
metadata_last_lsn);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
@ -5295,27 +5286,6 @@ innodb_free_param()
|
|||
}
|
||||
|
||||
|
||||
/** Store the current binary log coordinates in a specified file.
|
||||
@param[in] filename file name
|
||||
@param[in] name binary log file name
|
||||
@param[in] pos binary log file position
|
||||
@return whether the operation succeeded */
|
||||
static bool
|
||||
store_binlog_info(const char* filename, const char* name, ulonglong pos)
|
||||
{
|
||||
FILE *fp = fopen(filename, "w");
|
||||
|
||||
if (!fp) {
|
||||
msg("mariabackup: failed to open '%s'", filename);
|
||||
return(false);
|
||||
}
|
||||
|
||||
fprintf(fp, "%s\t%llu\n", name, pos);
|
||||
fclose(fp);
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
/** Check if file exists*/
|
||||
static bool file_exists(std::string name)
|
||||
{
|
||||
|
|
@ -5581,20 +5551,6 @@ xtrabackup_prepare_func(char** argv)
|
|||
msg("Last binlog file %s, position %lld",
|
||||
trx_sys.recovered_binlog_filename,
|
||||
longlong(trx_sys.recovered_binlog_offset));
|
||||
|
||||
/* output to xtrabackup_binlog_pos_innodb and
|
||||
(if backup_safe_binlog_info was available on
|
||||
the server) to xtrabackup_binlog_info. In the
|
||||
latter case xtrabackup_binlog_pos_innodb
|
||||
becomes redundant and is created only for
|
||||
compatibility. */
|
||||
ok = store_binlog_info("xtrabackup_binlog_pos_innodb",
|
||||
trx_sys.recovered_binlog_filename,
|
||||
trx_sys.recovered_binlog_offset)
|
||||
&& (!recover_binlog_info
|
||||
|| store_binlog_info(XTRABACKUP_BINLOG_INFO,
|
||||
trx_sys.recovered_binlog_filename,
|
||||
trx_sys.recovered_binlog_offset));
|
||||
}
|
||||
|
||||
/* Check whether the log is applied enough or not. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue