diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-04-20 22:43:58 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-04-27 19:12:43 +0200 |
commit | c0e24cd0e8e283f5b1c90fc4bd58d0c2be639d57 (patch) | |
tree | 56be38a0a0c4a4f8de178ec5b4f3d4ddad16751f /extra | |
parent | f21dcd9933b4a8138e1f6c3a9d7cabb65198e0b5 (diff) | |
download | mariadb-git-c0e24cd0e8e283f5b1c90fc4bd58d0c2be639d57.tar.gz |
compiler warnings
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mariabackup/backup_mysql.cc | 1 | ||||
-rw-r--r-- | extra/mariabackup/crc/crc_glue.c | 6 | ||||
-rw-r--r-- | extra/mariabackup/ds_archive.c | 11 | ||||
-rw-r--r-- | extra/mariabackup/xtrabackup.cc | 2 |
4 files changed, 12 insertions, 8 deletions
diff --git a/extra/mariabackup/backup_mysql.cc b/extra/mariabackup/backup_mysql.cc index 52aaf138fc8..6299afffc6e 100644 --- a/extra/mariabackup/backup_mysql.cc +++ b/extra/mariabackup/backup_mysql.cc @@ -1395,7 +1395,6 @@ write_xtrabackup_info(MYSQL *connection) char buf_start_time[100]; char buf_end_time[100]; tm tm; - my_bool null = TRUE; ostringstream oss; const char *xb_stream_name[] = {"file", "tar", "xbstream"}; diff --git a/extra/mariabackup/crc/crc_glue.c b/extra/mariabackup/crc/crc_glue.c index f42910d8344..ae3fa91c1b0 100644 --- a/extra/mariabackup/crc/crc_glue.c +++ b/extra/mariabackup/crc/crc_glue.c @@ -18,11 +18,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *******************************************************/ -#include <zlib.h> -#include <stdint.h> -#include <string.h> #include "crc_glue.h" #include "crc-intel-pclmul.h" +#include <stdint.h> +#include <string.h> +#include <zlib.h> #if __GNUC__ >= 4 && defined(__x86_64__) static int pclmul_enabled = 0; diff --git a/extra/mariabackup/ds_archive.c b/extra/mariabackup/ds_archive.c index aa38b2f9530..50afcce4bc7 100644 --- a/extra/mariabackup/ds_archive.c +++ b/extra/mariabackup/ds_archive.c @@ -24,6 +24,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA #include "common.h" #include "datasink.h" +#if ARCHIVE_VERSION_NUMBER < 3000000 +#define archive_write_add_filter_none(X) archive_write_set_compression_none(X) +#define archive_write_free(X) archive_write_finish(X) +#endif + typedef struct { struct archive *archive; ds_file_t *dest_file; @@ -114,14 +119,14 @@ archive_init(const char *root __attribute__((unused))) archive_ctxt->archive = a; archive_ctxt->dest_file = NULL; - if (archive_write_set_compression_none(a) != ARCHIVE_OK || + if(archive_write_add_filter_none(a) != ARCHIVE_OK || archive_write_set_format_pax_restricted(a) != ARCHIVE_OK || /* disable internal buffering so we don't have to flush the output in xtrabackup */ archive_write_set_bytes_per_block(a, 0) != ARCHIVE_OK) { msg("failed to set libarchive archive options: %s\n", archive_error_string(a)); - archive_write_finish(a); + archive_write_free(a); goto err; } @@ -262,7 +267,7 @@ archive_deinit(ds_ctxt_t *ctxt) if (archive_write_close(a) != ARCHIVE_OK) { msg("archive_write_close() failed.\n"); } - archive_write_finish(a); + archive_write_free(a); if (archive_ctxt->dest_file) { ds_close(archive_ctxt->dest_file); diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc index c6962069315..c116d119cee 100644 --- a/extra/mariabackup/xtrabackup.cc +++ b/extra/mariabackup/xtrabackup.cc @@ -6514,7 +6514,7 @@ skip_check: Unfinished transactions are not rolled back during log applying as they can be finished at the firther files applyings. */ - srv_apply_log_only = xtrabackup_apply_log_only = true; + xtrabackup_apply_log_only = srv_apply_log_only = true; if (!xtrabackup_arch_search_files(min_flushed_lsn)) { goto error_cleanup; |