Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ed6168f7
Commit
ed6168f7
authored
Mar 23, 2020
by
Eugene Kosov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: group deprecated:: code together
parent
194c5b6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
48 deletions
+48
-48
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+48
-48
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
ed6168f7
...
@@ -3480,6 +3480,54 @@ static int innodb_init_params()
...
@@ -3480,6 +3480,54 @@ static int innodb_init_params()
"xtradbinnodb-file-format/"
,
p
);
"xtradbinnodb-file-format/"
,
p
);
}
}
if
(
UNIV_UNLIKELY
(
!
deprecated
::
innodb_log_checksums
))
{
sql_print_warning
(
deprecated
::
innodb_log_checksums_msg
);
deprecated
::
innodb_log_checksums
=
TRUE
;
}
if
(
UNIV_UNLIKELY
(
!
deprecated
::
innodb_log_compressed_pages
))
{
sql_print_warning
(
deprecated
::
innodb_log_compressed_pages_msg
);
deprecated
::
innodb_log_compressed_pages
=
TRUE
;
}
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_log_optimize_ddl
))
{
sql_print_warning
(
deprecated
::
innodb_log_optimize_ddl_msg
);
deprecated
::
innodb_log_optimize_ddl
=
FALSE
;
}
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_scrub_log
))
{
sql_print_warning
(
deprecated
::
innodb_scrub_log_msg
);
deprecated
::
innodb_scrub_log
=
FALSE
;
}
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_scrub_log_speed
!=
256
))
{
sql_print_warning
(
deprecated
::
innodb_scrub_log_speed_msg
);
deprecated
::
innodb_scrub_log_speed
=
256
;
}
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_buffer_pool_instances
))
{
sql_print_warning
(
"The parameter innodb_buffer_pool_instances"
" is deprecated and has no effect."
);
}
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_page_cleaners
))
{
sql_print_warning
(
deprecated
::
innodb_page_cleaners_msg
);
}
if
(
UNIV_UNLIKELY
(
deprecated
::
srv_n_log_files
!=
1
))
{
sql_print_warning
(
deprecated
::
srv_n_log_files_msg
);
deprecated
::
srv_n_log_files
=
1
;
}
deprecated
::
innodb_buffer_pool_instances
=
1
;
deprecated
::
innodb_page_cleaners
=
1
;
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_undo_logs
!=
TRX_SYS_N_RSEGS
))
{
sql_print_warning
(
deprecated
::
innodb_undo_logs_msg
);
deprecated
::
innodb_undo_logs
=
TRX_SYS_N_RSEGS
;
}
/* Check that values don't overflow on 32-bit systems. */
/* Check that values don't overflow on 32-bit systems. */
if
(
sizeof
(
ulint
)
==
4
)
{
if
(
sizeof
(
ulint
)
==
4
)
{
if
(
innobase_buffer_pool_size
>
UINT_MAX32
)
{
if
(
innobase_buffer_pool_size
>
UINT_MAX32
)
{
...
@@ -3754,54 +3802,6 @@ static int innodb_init_params()
...
@@ -3754,54 +3802,6 @@ static int innodb_init_params()
srv_buf_pool_size
=
ulint
(
innobase_buffer_pool_size
);
srv_buf_pool_size
=
ulint
(
innobase_buffer_pool_size
);
if
(
UNIV_UNLIKELY
(
!
deprecated
::
innodb_log_checksums
))
{
sql_print_warning
(
deprecated
::
innodb_log_checksums_msg
);
deprecated
::
innodb_log_checksums
=
TRUE
;
}
if
(
UNIV_UNLIKELY
(
!
deprecated
::
innodb_log_compressed_pages
))
{
sql_print_warning
(
deprecated
::
innodb_log_compressed_pages_msg
);
deprecated
::
innodb_log_compressed_pages
=
TRUE
;
}
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_log_optimize_ddl
))
{
sql_print_warning
(
deprecated
::
innodb_log_optimize_ddl_msg
);
deprecated
::
innodb_log_optimize_ddl
=
FALSE
;
}
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_scrub_log
))
{
sql_print_warning
(
deprecated
::
innodb_scrub_log_msg
);
deprecated
::
innodb_scrub_log
=
FALSE
;
}
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_scrub_log_speed
!=
256
))
{
sql_print_warning
(
deprecated
::
innodb_scrub_log_speed_msg
);
deprecated
::
innodb_scrub_log_speed
=
256
;
}
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_buffer_pool_instances
))
{
sql_print_warning
(
"The parameter innodb_buffer_pool_instances"
" is deprecated and has no effect."
);
}
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_page_cleaners
))
{
sql_print_warning
(
deprecated
::
innodb_page_cleaners_msg
);
}
if
(
UNIV_UNLIKELY
(
deprecated
::
srv_n_log_files
!=
1
))
{
sql_print_warning
(
deprecated
::
srv_n_log_files_msg
);
deprecated
::
srv_n_log_files
=
1
;
}
deprecated
::
innodb_buffer_pool_instances
=
1
;
deprecated
::
innodb_page_cleaners
=
1
;
if
(
UNIV_UNLIKELY
(
deprecated
::
innodb_undo_logs
!=
TRX_SYS_N_RSEGS
))
{
sql_print_warning
(
deprecated
::
innodb_undo_logs_msg
);
deprecated
::
innodb_undo_logs
=
TRX_SYS_N_RSEGS
;
}
row_rollback_on_timeout
=
(
ibool
)
innobase_rollback_on_timeout
;
row_rollback_on_timeout
=
(
ibool
)
innobase_rollback_on_timeout
;
if
(
innobase_open_files
<
10
)
{
if
(
innobase_open_files
<
10
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment