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(
lsn values in data files */
lsn_t* max_flushed_lsn, /*!< out: max of flushed
lsn values in data files */
ulint orig_space_id, /*!< in: original file space
id */
fil_space_crypt_t** crypt_data) /*< out: crypt data */
{
byte* buf;
......@@ -3730,7 +3728,7 @@ fil_open_single_table_tablespace(
#ifdef UNIV_LOG_ARCHIVE
&space_arch_log_no, &space_arch_log_no,
#endif /* UNIV_LOG_ARCHIVE */
&def.lsn, &def.lsn, id, &def.crypt_data);
&def.lsn, &def.lsn, &def.crypt_data);
def.valid = !def.check_msg;
/* Validate this single-table-tablespace with SYS_TABLES,
......@@ -3755,7 +3753,7 @@ fil_open_single_table_tablespace(
#ifdef UNIV_LOG_ARCHIVE
&remote.arch_log_no, &remote.arch_log_no,
#endif /* UNIV_LOG_ARCHIVE */
&remote.lsn, &remote.lsn, id, &remote.crypt_data);
&remote.lsn, &remote.lsn, &remote.crypt_data);
remote.valid = !remote.check_msg;
/* Validate this single-table-tablespace with SYS_TABLES,
......@@ -3781,7 +3779,7 @@ fil_open_single_table_tablespace(
#ifdef UNIV_LOG_ARCHIVE
&dict.arch_log_no, &dict.arch_log_no,
#endif /* UNIV_LOG_ARCHIVE */
&dict.lsn, &dict.lsn, id, &dict.crypt_data);
&dict.lsn, &dict.lsn, &dict.crypt_data);
dict.valid = !dict.check_msg;
/* Validate this single-table-tablespace with SYS_TABLES,
......@@ -4204,7 +4202,7 @@ fil_validate_single_table_tablespace(
#ifdef UNIV_LOG_ARCHIVE
&fsp->arch_log_no, &fsp->arch_log_no,
#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,
"%s in tablespace %s (table %s)",
check_msg, fsp->filepath, tablename);
......
......@@ -611,8 +611,6 @@ fil_read_first_page(
lsn values in data files */
lsn_t* max_flushed_lsn, /*!< out: max of flushed
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 */
__attribute__((warn_unused_result));
......
......@@ -1025,8 +1025,7 @@ open_or_create_data_files(
#ifdef UNIV_LOG_ARCHIVE
min_arch_log_no, max_arch_log_no,
#endif /* UNIV_LOG_ARCHIVE */
min_flushed_lsn, max_flushed_lsn,
ULINT_UNDEFINED, &crypt_data);
min_flushed_lsn, max_flushed_lsn, &crypt_data);
if (check_msg) {
......
......@@ -2012,8 +2012,6 @@ fil_read_first_page(
lsn values in data files */
lsn_t* max_flushed_lsn, /*!< out: max of flushed
lsn values in data files */
ulint orig_space_id, /*!< in: original file space
id */
fil_space_crypt_t** crypt_data) /*< out: crypt data */
{
byte* buf;
......@@ -3761,7 +3759,7 @@ fil_open_single_table_tablespace(
if (def.success) {
def.check_msg = fil_read_first_page(
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;
/* Validate this single-table-tablespace with SYS_TABLES,
......@@ -3783,7 +3781,7 @@ fil_open_single_table_tablespace(
if (remote.success) {
remote.check_msg = fil_read_first_page(
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;
/* Validate this single-table-tablespace with SYS_TABLES,
......@@ -3806,7 +3804,7 @@ fil_open_single_table_tablespace(
if (dict.success) {
dict.check_msg = fil_read_first_page(
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;
/* Validate this single-table-tablespace with SYS_TABLES,
......@@ -4225,7 +4223,7 @@ fil_validate_single_table_tablespace(
fsp->success = TRUE;
if (const char* check_msg = fil_read_first_page(
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,
"%s in tablespace %s (table %s)",
check_msg, fsp->filepath, tablename);
......
......@@ -606,8 +606,6 @@ fil_read_first_page(
lsn values in data files */
lsn_t* max_flushed_lsn, /*!< out: max of flushed
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 */
__attribute__((warn_unused_result));
......
......@@ -1060,7 +1060,7 @@ open_or_create_data_files(
check_first_page:
check_msg = fil_read_first_page(
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) {
......
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