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
cb135edc
Commit
cb135edc
authored
Aug 25, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: handlerton
remove unused methods, reorder methods, add comments
parent
7ce8a82f
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
416 additions
and
449 deletions
+416
-449
mysql-test/main/information_schema.result
mysql-test/main/information_schema.result
+3
-0
mysql-test/suite/innodb/r/tablespace_per_table_not_windows.result
...st/suite/innodb/r/tablespace_per_table_not_windows.result
+4
-0
mysql-test/suite/innodb/r/tablespace_per_table_windows.result
...l-test/suite/innodb/r/tablespace_per_table_windows.result
+4
-0
sql/deprecation.h
sql/deprecation.h
+1
-1
sql/handler.cc
sql/handler.cc
+0
-15
sql/handler.h
sql/handler.h
+394
-399
sql/lock.cc
sql/lock.cc
+1
-3
sql/sql_reload.cc
sql/sql_reload.cc
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+5
-26
storage/maria/ha_maria.cc
storage/maria/ha_maria.cc
+2
-3
storage/maria/ha_s3.cc
storage/maria/ha_s3.cc
+1
-1
No files found.
mysql-test/main/information_schema.result
View file @
cb135edc
...
...
@@ -2326,6 +2326,9 @@ LOGFILE_GROUP_NAME, FILE_NAME, ENGINE
ORDER BY
LOGFILE_GROUP_NAME;
LOGFILE_GROUP_NAME FILE_NAME TOTAL_EXTENTS INITIAL_SIZE ENGINE EXTRA
Warnings:
Warning 1287 'information_schema.FILES' is deprecated and will be removed in a future release
Warning 1287 'information_schema.FILES' is deprecated and will be removed in a future release
# This must have Opened_tables=3, not 6.
show status like 'Opened_tables';
Variable_name Value
...
...
mysql-test/suite/innodb/r/tablespace_per_table_not_windows.result
View file @
cb135edc
...
...
@@ -116,6 +116,10 @@ test/#################################################_long_
twenty_byte_db_name_/#################################################_long_
##################################################_long/#################################################_long
SELECT file_name, tablespace_name FROM information_schema.files WHERE file_name LIKE '%long%';
Warnings:
Level Warning
Code 1287
Message 'information_schema.FILES' is deprecated and will be removed in a future release
#
# Cleanup
#
...
...
mysql-test/suite/innodb/r/tablespace_per_table_windows.result
View file @
cb135edc
...
...
@@ -42,6 +42,10 @@ SELECT name FROM information_schema.innodb_sys_tablespaces WHERE name LIKE '%lon
name
this_sixty_four_byte_name_is_not_too_long_______________________/this_sixty_four_byte_name_is_not_too_long_______________________
SELECT file_name, tablespace_name FROM information_schema.files WHERE file_name LIKE '%long%';
Warnings:
Level Warning
Code 1287
Message 'information_schema.FILES' is deprecated and will be removed in a future release
#
# Cleanup
#
...
...
sql/deprecation.h
View file @
cb135edc
...
...
@@ -30,7 +30,7 @@ template<uint V> static inline void check_deprecated_version(void)
V
<=
1004
?
MYSQL_VERSION_ID
<
110500
:
/* until 10.4 EOL */
V
<=
1005
?
MYSQL_VERSION_ID
<
120100
:
/* until 10.5 EOL */
V
<=
1010
?
MYSQL_VERSION_ID
<
120500
:
/* until 10.6 EOL */
V
<=
110
6
?
MYSQL_VERSION_ID
<
130400
:
/* until 10.11 EOL */
V
<=
110
7
?
MYSQL_VERSION_ID
<
130400
:
/* until 10.11 EOL */
V
==
999999
,
/* only for sys_var::do_deprecated_warning() */
"check_deprecated_version failed"
);
...
...
sql/handler.cc
View file @
cb135edc
...
...
@@ -888,21 +888,6 @@ void ha_drop_database(const char* path)
}
static
my_bool
checkpoint_state_handlerton
(
THD
*
,
plugin_ref
plugin
,
void
*
disable
)
{
handlerton
*
hton
=
plugin_hton
(
plugin
);
if
(
hton
->
checkpoint_state
)
hton
->
checkpoint_state
(
hton
,
(
int
)
*
(
bool
*
)
disable
);
return
FALSE
;
}
void
ha_checkpoint_state
(
bool
disable
)
{
plugin_foreach
(
NULL
,
checkpoint_state_handlerton
,
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
disable
);
}
struct
st_commit_checkpoint_request
{
void
*
cookie
;
void
(
*
pre_hook
)(
void
*
);
...
...
sql/handler.h
View file @
cb135edc
This diff is collapsed.
Click to expand it.
sql/lock.cc
View file @
cb135edc
...
...
@@ -1133,9 +1133,7 @@ void Global_read_lock::unlock_global_read_lock(THD *thd)
{
thd
->
global_disable_checkpoint
=
0
;
if
(
!--
global_disable_checkpoint
)
{
ha_checkpoint_state
(
0
);
// Enable checkpoints
}
ha_disable_internal_writes
(
0
);
// Enable checkpoints
}
thd
->
mdl_context
.
release_lock
(
m_mdl_global_read_lock
);
...
...
sql/sql_reload.cc
View file @
cb135edc
...
...
@@ -678,6 +678,6 @@ static void disable_checkpoints(THD *thd)
{
thd
->
global_disable_checkpoint
=
1
;
if
(
!
global_disable_checkpoint
++
)
ha_
checkpoint_state
(
1
);
// Disable checkpoints
ha_
disable_internal_writes
(
1
);
// Disable checkpoints
}
}
sql/sql_show.cc
View file @
cb135edc
...
...
@@ -9626,35 +9626,14 @@ bool get_schema_tables_result(JOIN *join,
DBUG_RETURN
(
result
);
}
struct
run_hton_fill_schema_table_args
{
TABLE_LIST
*
tables
;
COND
*
cond
;
};
static
my_bool
run_hton_fill_schema_table
(
THD
*
thd
,
plugin_ref
plugin
,
void
*
arg
)
{
struct
run_hton_fill_schema_table_args
*
args
=
(
run_hton_fill_schema_table_args
*
)
arg
;
handlerton
*
hton
=
plugin_hton
(
plugin
);
if
(
hton
->
fill_is_table
)
hton
->
fill_is_table
(
hton
,
thd
,
args
->
tables
,
args
->
cond
,
get_schema_table_idx
(
args
->
tables
->
schema_table
));
return
false
;
}
int
hton_fill_schema_table
(
THD
*
thd
,
TABLE_LIST
*
tables
,
COND
*
cond
)
{
DBUG_ENTER
(
"hton_fill_schema_table"
);
struct
run_hton_fill_schema_table_args
args
;
args
.
tables
=
tables
;
args
.
cond
=
cond
;
plugin_foreach
(
thd
,
run_hton_fill_schema_table
,
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
args
);
StringBuffer
<
STRING_BUFFER_USUAL_SIZE
>
str
(
system_charset_info
);
str
.
append
(
INFORMATION_SCHEMA_NAME
);
str
.
append
(
'.'
);
str
.
append
(
tables
->
schema_table
->
table_name
);
warn_deprecated
<
1107
>
(
thd
,
str
.
c_ptr
());
DBUG_RETURN
(
0
);
}
...
...
storage/maria/ha_maria.cc
View file @
cb135edc
...
...
@@ -3674,10 +3674,9 @@ bool maria_flush_logs(handlerton *hton)
}
int
maria_checkpoint_state
(
handlerton
*
hton
,
bool
disabled
)
void
maria_checkpoint_state
(
bool
disabled
)
{
maria_checkpoint_disabled
=
(
my_bool
)
disabled
;
return
0
;
}
...
...
@@ -3903,7 +3902,7 @@ static int ha_maria_init(void *p)
maria_hton
->
tablefile_extensions
=
ha_maria_exts
;
maria_hton
->
commit
=
maria_commit
;
maria_hton
->
rollback
=
maria_rollback
;
maria_hton
->
checkpoint_state
=
maria_checkpoint_state
;
maria_hton
->
disable_internal_writes
=
maria_checkpoint_state
;
maria_hton
->
flush_logs
=
maria_flush_logs
;
maria_hton
->
show_status
=
maria_show_status
;
maria_hton
->
prepare_for_backup
=
maria_prepare_for_backup
;
...
...
storage/maria/ha_s3.cc
View file @
cb135edc
...
...
@@ -1054,7 +1054,7 @@ static int ha_s3_init(void *p)
s3_hton
->
tablefile_extensions
=
no_exts
;
s3_hton
->
commit
=
0
;
s3_hton
->
rollback
=
0
;
s3_hton
->
checkpoint_state
=
0
;
s3_hton
->
disable_internal_writes
=
0
;
s3_hton
->
flush_logs
=
0
;
s3_hton
->
show_status
=
0
;
s3_hton
->
prepare_for_backup
=
0
;
...
...
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