Commit fe7e334f authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: remove unused function argument

parent c5833603
...@@ -1975,8 +1975,6 @@ fil_read_first_page( ...@@ -1975,8 +1975,6 @@ fil_read_first_page(
lsn values in data files */ lsn values in data files */
lsn_t* max_flushed_lsn, /*!< out: max of flushed lsn_t* max_flushed_lsn, /*!< out: max of flushed
lsn values in data files */ lsn values in data files */
ulint orig_space_id, /*!< in: original file space
id */
fil_space_crypt_t** crypt_data) /*< out: crypt data */ fil_space_crypt_t** crypt_data) /*< out: crypt data */
{ {
byte* buf; byte* buf;
...@@ -3730,7 +3728,7 @@ fil_open_single_table_tablespace( ...@@ -3730,7 +3728,7 @@ fil_open_single_table_tablespace(
#ifdef UNIV_LOG_ARCHIVE #ifdef UNIV_LOG_ARCHIVE
&space_arch_log_no, &space_arch_log_no, &space_arch_log_no, &space_arch_log_no,
#endif /* UNIV_LOG_ARCHIVE */ #endif /* UNIV_LOG_ARCHIVE */
&def.lsn, &def.lsn, id, &def.crypt_data); &def.lsn, &def.lsn, &def.crypt_data);
def.valid = !def.check_msg; def.valid = !def.check_msg;
/* Validate this single-table-tablespace with SYS_TABLES, /* Validate this single-table-tablespace with SYS_TABLES,
...@@ -3755,7 +3753,7 @@ fil_open_single_table_tablespace( ...@@ -3755,7 +3753,7 @@ fil_open_single_table_tablespace(
#ifdef UNIV_LOG_ARCHIVE #ifdef UNIV_LOG_ARCHIVE
&remote.arch_log_no, &remote.arch_log_no, &remote.arch_log_no, &remote.arch_log_no,
#endif /* UNIV_LOG_ARCHIVE */ #endif /* UNIV_LOG_ARCHIVE */
&remote.lsn, &remote.lsn, id, &remote.crypt_data); &remote.lsn, &remote.lsn, &remote.crypt_data);
remote.valid = !remote.check_msg; remote.valid = !remote.check_msg;
/* Validate this single-table-tablespace with SYS_TABLES, /* Validate this single-table-tablespace with SYS_TABLES,
...@@ -3781,7 +3779,7 @@ fil_open_single_table_tablespace( ...@@ -3781,7 +3779,7 @@ fil_open_single_table_tablespace(
#ifdef UNIV_LOG_ARCHIVE #ifdef UNIV_LOG_ARCHIVE
&dict.arch_log_no, &dict.arch_log_no, &dict.arch_log_no, &dict.arch_log_no,
#endif /* UNIV_LOG_ARCHIVE */ #endif /* UNIV_LOG_ARCHIVE */
&dict.lsn, &dict.lsn, id, &dict.crypt_data); &dict.lsn, &dict.lsn, &dict.crypt_data);
dict.valid = !dict.check_msg; dict.valid = !dict.check_msg;
/* Validate this single-table-tablespace with SYS_TABLES, /* Validate this single-table-tablespace with SYS_TABLES,
...@@ -4204,7 +4202,7 @@ fil_validate_single_table_tablespace( ...@@ -4204,7 +4202,7 @@ fil_validate_single_table_tablespace(
#ifdef UNIV_LOG_ARCHIVE #ifdef UNIV_LOG_ARCHIVE
&fsp->arch_log_no, &fsp->arch_log_no, &fsp->arch_log_no, &fsp->arch_log_no,
#endif /* UNIV_LOG_ARCHIVE */ #endif /* UNIV_LOG_ARCHIVE */
&fsp->lsn, &fsp->lsn, ULINT_UNDEFINED, &fsp->crypt_data)) { &fsp->lsn, &fsp->lsn, &fsp->crypt_data)) {
ib_logf(IB_LOG_LEVEL_ERROR, ib_logf(IB_LOG_LEVEL_ERROR,
"%s in tablespace %s (table %s)", "%s in tablespace %s (table %s)",
check_msg, fsp->filepath, tablename); check_msg, fsp->filepath, tablename);
......
...@@ -611,8 +611,6 @@ fil_read_first_page( ...@@ -611,8 +611,6 @@ fil_read_first_page(
lsn values in data files */ lsn values in data files */
lsn_t* max_flushed_lsn, /*!< out: max of flushed lsn_t* max_flushed_lsn, /*!< out: max of flushed
lsn values in data files */ lsn values in data files */
ulint orig_space_id, /*!< in: file space id or
ULINT_UNDEFINED */
fil_space_crypt_t** crypt_data) /*!< out: crypt data */ fil_space_crypt_t** crypt_data) /*!< out: crypt data */
__attribute__((warn_unused_result)); __attribute__((warn_unused_result));
......
...@@ -1025,8 +1025,7 @@ open_or_create_data_files( ...@@ -1025,8 +1025,7 @@ open_or_create_data_files(
#ifdef UNIV_LOG_ARCHIVE #ifdef UNIV_LOG_ARCHIVE
min_arch_log_no, max_arch_log_no, min_arch_log_no, max_arch_log_no,
#endif /* UNIV_LOG_ARCHIVE */ #endif /* UNIV_LOG_ARCHIVE */
min_flushed_lsn, max_flushed_lsn, min_flushed_lsn, max_flushed_lsn, &crypt_data);
ULINT_UNDEFINED, &crypt_data);
if (check_msg) { if (check_msg) {
......
...@@ -2012,8 +2012,6 @@ fil_read_first_page( ...@@ -2012,8 +2012,6 @@ fil_read_first_page(
lsn values in data files */ lsn values in data files */
lsn_t* max_flushed_lsn, /*!< out: max of flushed lsn_t* max_flushed_lsn, /*!< out: max of flushed
lsn values in data files */ lsn values in data files */
ulint orig_space_id, /*!< in: original file space
id */
fil_space_crypt_t** crypt_data) /*< out: crypt data */ fil_space_crypt_t** crypt_data) /*< out: crypt data */
{ {
byte* buf; byte* buf;
...@@ -3761,7 +3759,7 @@ fil_open_single_table_tablespace( ...@@ -3761,7 +3759,7 @@ fil_open_single_table_tablespace(
if (def.success) { if (def.success) {
def.check_msg = fil_read_first_page( def.check_msg = fil_read_first_page(
def.file, FALSE, &def.flags, &def.id, def.file, FALSE, &def.flags, &def.id,
&def.lsn, &def.lsn, id, &def.crypt_data); &def.lsn, &def.lsn, &def.crypt_data);
def.valid = !def.check_msg; def.valid = !def.check_msg;
/* Validate this single-table-tablespace with SYS_TABLES, /* Validate this single-table-tablespace with SYS_TABLES,
...@@ -3783,7 +3781,7 @@ fil_open_single_table_tablespace( ...@@ -3783,7 +3781,7 @@ fil_open_single_table_tablespace(
if (remote.success) { if (remote.success) {
remote.check_msg = fil_read_first_page( remote.check_msg = fil_read_first_page(
remote.file, FALSE, &remote.flags, &remote.id, remote.file, FALSE, &remote.flags, &remote.id,
&remote.lsn, &remote.lsn, id, &remote.crypt_data); &remote.lsn, &remote.lsn, &remote.crypt_data);
remote.valid = !remote.check_msg; remote.valid = !remote.check_msg;
/* Validate this single-table-tablespace with SYS_TABLES, /* Validate this single-table-tablespace with SYS_TABLES,
...@@ -3806,7 +3804,7 @@ fil_open_single_table_tablespace( ...@@ -3806,7 +3804,7 @@ fil_open_single_table_tablespace(
if (dict.success) { if (dict.success) {
dict.check_msg = fil_read_first_page( dict.check_msg = fil_read_first_page(
dict.file, FALSE, &dict.flags, &dict.id, dict.file, FALSE, &dict.flags, &dict.id,
&dict.lsn, &dict.lsn, id, &dict.crypt_data); &dict.lsn, &dict.lsn, &dict.crypt_data);
dict.valid = !dict.check_msg; dict.valid = !dict.check_msg;
/* Validate this single-table-tablespace with SYS_TABLES, /* Validate this single-table-tablespace with SYS_TABLES,
...@@ -4225,7 +4223,7 @@ fil_validate_single_table_tablespace( ...@@ -4225,7 +4223,7 @@ fil_validate_single_table_tablespace(
fsp->success = TRUE; fsp->success = TRUE;
if (const char* check_msg = fil_read_first_page( if (const char* check_msg = fil_read_first_page(
fsp->file, FALSE, &fsp->flags, &fsp->id, fsp->file, FALSE, &fsp->flags, &fsp->id,
&fsp->lsn, &fsp->lsn, ULINT_UNDEFINED, &fsp->crypt_data)) { &fsp->lsn, &fsp->lsn, &fsp->crypt_data)) {
ib_logf(IB_LOG_LEVEL_ERROR, ib_logf(IB_LOG_LEVEL_ERROR,
"%s in tablespace %s (table %s)", "%s in tablespace %s (table %s)",
check_msg, fsp->filepath, tablename); check_msg, fsp->filepath, tablename);
......
...@@ -606,8 +606,6 @@ fil_read_first_page( ...@@ -606,8 +606,6 @@ fil_read_first_page(
lsn values in data files */ lsn values in data files */
lsn_t* max_flushed_lsn, /*!< out: max of flushed lsn_t* max_flushed_lsn, /*!< out: max of flushed
lsn values in data files */ lsn values in data files */
ulint orig_space_id, /*!< in: file space id or
ULINT_UNDEFINED */
fil_space_crypt_t** crypt_data) /*!< out: crypt data */ fil_space_crypt_t** crypt_data) /*!< out: crypt data */
__attribute__((warn_unused_result)); __attribute__((warn_unused_result));
......
...@@ -1060,7 +1060,7 @@ open_or_create_data_files( ...@@ -1060,7 +1060,7 @@ open_or_create_data_files(
check_first_page: check_first_page:
check_msg = fil_read_first_page( check_msg = fil_read_first_page(
files[i], one_opened, &flags, &space, files[i], one_opened, &flags, &space,
min_flushed_lsn, max_flushed_lsn, ULINT_UNDEFINED, &crypt_data); min_flushed_lsn, max_flushed_lsn, &crypt_data);
if (check_msg) { if (check_msg) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment