summaryrefslogtreecommitdiff
path: root/extra/mariabackup/xtrabackup.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-12-14 15:44:51 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-12-14 15:44:51 +0200
commitfb252f70c17c0ade38082ca5db198dca68b810ed (patch)
treed42609eb6d352332b0f2124c0b8a52af9e69b2bb /extra/mariabackup/xtrabackup.h
parent621041b67698b040080b33928883336967687e1e (diff)
downloadmariadb-git-fb252f70c17c0ade38082ca5db198dca68b810ed.tar.gz
MDEV-12112 corruption in encrypted table may be overlooked
After validating the post-encryption checksum on an encrypted page, Mariabackup should decrypt the page and validate the pre-encryption checksum as well. This should reduce the probability of accepting invalid pages as valid ones. This is a backport and refactoring of a patch that was originally written by Thirunarayanan Balathandayuthapani for the 10.2 branch.
Diffstat (limited to 'extra/mariabackup/xtrabackup.h')
-rw-r--r--extra/mariabackup/xtrabackup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/mariabackup/xtrabackup.h b/extra/mariabackup/xtrabackup.h
index 3b2a25d451b..9af7c861dd7 100644
--- a/extra/mariabackup/xtrabackup.h
+++ b/extra/mariabackup/xtrabackup.h
@@ -184,7 +184,7 @@ void xb_data_files_close(void);
/***********************************************************************
Reads the space flags from a given data file and returns the compressed
page size, or 0 if the space is not compressed. */
-ulint xb_get_zip_size(pfs_os_file_t file);
+ulint xb_get_zip_size(fil_node_t* file);
/************************************************************************
Checks if a table specified as a name in the form "database/name" (InnoDB 5.6)