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
6a447d10
Commit
6a447d10
authored
Aug 04, 2010
by
Konstantin Osipov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: remove unused declarations from sql_base.h.
parent
11c61b57
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
32 deletions
+4
-32
sql/sql_base.cc
sql/sql_base.cc
+2
-3
sql/sql_base.h
sql/sql_base.h
+0
-27
sql/sql_test.cc
sql/sql_test.cc
+2
-2
No files found.
sql/sql_base.cc
View file @
6a447d10
...
@@ -8647,9 +8647,8 @@ bool mysql_notify_thread_having_shared_lock(THD *thd, THD *in_use,
...
@@ -8647,9 +8647,8 @@ bool mysql_notify_thread_having_shared_lock(THD *thd, THD *in_use,
@param db Name of database
@param db Name of database
@param table_name Name of table
@param table_name Name of table
@note Unlike remove_table_from_cache() it assumes that table instances
@note It assumes that table instances are already not used by any
are already not used by any (other) thread (this should be achieved
(other) thread (this should be achieved by using meta-data locks).
by using meta-data locks).
*/
*/
void
tdc_remove_table
(
THD
*
thd
,
enum_tdc_remove_table_type
remove_type
,
void
tdc_remove_table
(
THD
*
thd
,
enum_tdc_remove_table_type
remove_type
,
...
...
sql/sql_base.h
View file @
6a447d10
...
@@ -90,28 +90,10 @@ TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type update,
...
@@ -90,28 +90,10 @@ TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type update,
uint
lock_flags
);
uint
lock_flags
);
bool
open_table
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
MEM_ROOT
*
mem_root
,
bool
open_table
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
MEM_ROOT
*
mem_root
,
Open_table_context
*
ot_ctx
);
Open_table_context
*
ot_ctx
);
bool
name_lock_locked_table
(
THD
*
thd
,
TABLE_LIST
*
tables
);
bool
reopen_name_locked_table
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
bool
link_in
);
TABLE
*
table_cache_insert_placeholder
(
THD
*
thd
,
const
char
*
key
,
uint
key_length
);
bool
lock_table_name_if_not_cached
(
THD
*
thd
,
const
char
*
db
,
const
char
*
table_name
,
TABLE
**
table
);
void
detach_merge_children
(
TABLE
*
table
,
bool
clear_refs
);
bool
fix_merge_after_open
(
TABLE_LIST
*
old_child_list
,
TABLE_LIST
**
old_last
,
TABLE_LIST
*
new_child_list
,
TABLE_LIST
**
new_last
);
bool
reopen_table
(
TABLE
*
table
);
bool
reopen_tables
(
THD
*
thd
,
bool
get_locks
,
bool
in_refresh
);
void
close_data_files_and_morph_locks
(
THD
*
thd
,
const
char
*
db
,
const
char
*
table_name
);
void
close_handle_and_leave_table_as_lock
(
TABLE
*
table
);
bool
open_new_frm
(
THD
*
thd
,
TABLE_SHARE
*
share
,
const
char
*
alias
,
bool
open_new_frm
(
THD
*
thd
,
TABLE_SHARE
*
share
,
const
char
*
alias
,
uint
db_stat
,
uint
prgflag
,
uint
db_stat
,
uint
prgflag
,
uint
ha_open_flags
,
TABLE
*
outparam
,
TABLE_LIST
*
table_desc
,
uint
ha_open_flags
,
TABLE
*
outparam
,
TABLE_LIST
*
table_desc
,
MEM_ROOT
*
mem_root
);
MEM_ROOT
*
mem_root
);
bool
wait_for_tables
(
THD
*
thd
);
bool
table_is_used
(
TABLE
*
table
,
bool
wait_for_name_lock
);
TABLE
*
drop_locked_tables
(
THD
*
thd
,
const
char
*
db
,
const
char
*
table_name
);
void
abort_locked_tables
(
THD
*
thd
,
const
char
*
db
,
const
char
*
table_name
);
bool
get_key_map_from_key_list
(
key_map
*
map
,
TABLE
*
table
,
bool
get_key_map_from_key_list
(
key_map
*
map
,
TABLE
*
table
,
List
<
String
>
*
index_list
);
List
<
String
>
*
index_list
);
...
@@ -190,12 +172,9 @@ bool setup_tables_and_check_access(THD *thd,
...
@@ -190,12 +172,9 @@ bool setup_tables_and_check_access(THD *thd,
ulong
want_access
);
ulong
want_access
);
bool
wait_while_table_is_used
(
THD
*
thd
,
TABLE
*
table
,
bool
wait_while_table_is_used
(
THD
*
thd
,
TABLE
*
table
,
enum
ha_extra_function
function
);
enum
ha_extra_function
function
);
void
unlink_open_table
(
THD
*
thd
,
TABLE
*
find
,
bool
unlock
);
void
drop_open_table
(
THD
*
thd
,
TABLE
*
table
,
const
char
*
db_name
,
void
drop_open_table
(
THD
*
thd
,
TABLE
*
table
,
const
char
*
db_name
,
const
char
*
table_name
);
const
char
*
table_name
);
void
close_all_tables_for_name
(
THD
*
thd
,
TABLE_SHARE
*
share
,
bool
remove_from_locked_tables
);
void
update_non_unique_table_error
(
TABLE_LIST
*
update
,
void
update_non_unique_table_error
(
TABLE_LIST
*
update
,
const
char
*
operation
,
const
char
*
operation
,
TABLE_LIST
*
duplicate
);
TABLE_LIST
*
duplicate
);
...
@@ -232,8 +211,6 @@ void close_temporary_table(THD *thd, TABLE *table, bool free_share,
...
@@ -232,8 +211,6 @@ void close_temporary_table(THD *thd, TABLE *table, bool free_share,
void
close_temporary
(
TABLE
*
table
,
bool
free_share
,
bool
delete_table
);
void
close_temporary
(
TABLE
*
table
,
bool
free_share
,
bool
delete_table
);
bool
rename_temporary_table
(
THD
*
thd
,
TABLE
*
table
,
const
char
*
new_db
,
bool
rename_temporary_table
(
THD
*
thd
,
TABLE
*
table
,
const
char
*
new_db
,
const
char
*
table_name
);
const
char
*
table_name
);
void
mysql_wait_completed_table
(
ALTER_PARTITION_PARAM_TYPE
*
lpt
,
TABLE
*
my_table
);
void
remove_db_from_cache
(
const
char
*
db
);
bool
is_equal
(
const
LEX_STRING
*
a
,
const
LEX_STRING
*
b
);
bool
is_equal
(
const
LEX_STRING
*
a
,
const
LEX_STRING
*
b
);
/* Functions to work with system tables. */
/* Functions to work with system tables. */
...
@@ -257,8 +234,6 @@ bool close_cached_connection_tables(THD *thd, bool wait_for_refresh,
...
@@ -257,8 +234,6 @@ bool close_cached_connection_tables(THD *thd, bool wait_for_refresh,
void
close_all_tables_for_name
(
THD
*
thd
,
TABLE_SHARE
*
share
,
void
close_all_tables_for_name
(
THD
*
thd
,
TABLE_SHARE
*
share
,
bool
remove_from_locked_tables
);
bool
remove_from_locked_tables
);
OPEN_TABLE_LIST
*
list_open_tables
(
THD
*
thd
,
const
char
*
db
,
const
char
*
wild
);
OPEN_TABLE_LIST
*
list_open_tables
(
THD
*
thd
,
const
char
*
db
,
const
char
*
wild
);
bool
remove_table_from_cache
(
THD
*
thd
,
const
char
*
db
,
const
char
*
table
,
uint
flags
);
void
tdc_remove_table
(
THD
*
thd
,
enum_tdc_remove_table_type
remove_type
,
void
tdc_remove_table
(
THD
*
thd
,
enum_tdc_remove_table_type
remove_type
,
const
char
*
db
,
const
char
*
table_name
);
const
char
*
db
,
const
char
*
table_name
);
bool
tdc_open_view
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
const
char
*
alias
,
bool
tdc_open_view
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
const
char
*
alias
,
...
@@ -271,12 +246,10 @@ TABLE *find_table_for_mdl_upgrade(TABLE *list, const char *db,
...
@@ -271,12 +246,10 @@ TABLE *find_table_for_mdl_upgrade(TABLE *list, const char *db,
void
mark_tmp_table_for_reuse
(
TABLE
*
table
);
void
mark_tmp_table_for_reuse
(
TABLE
*
table
);
bool
check_if_table_exists
(
THD
*
thd
,
TABLE_LIST
*
table
,
bool
*
exists
);
bool
check_if_table_exists
(
THD
*
thd
,
TABLE_LIST
*
table
,
bool
*
exists
);
extern
uint
table_cache_count
;
extern
TABLE
*
unused_tables
;
extern
TABLE
*
unused_tables
;
extern
Item
**
not_found_item
;
extern
Item
**
not_found_item
;
extern
Field
*
not_found_field
;
extern
Field
*
not_found_field
;
extern
Field
*
view_ref_found
;
extern
Field
*
view_ref_found
;
extern
HASH
open_cache
;
extern
HASH
table_def_cache
;
extern
HASH
table_def_cache
;
/**
/**
...
...
sql/sql_test.cc
View file @
6a447d10
...
@@ -118,7 +118,7 @@ static void print_cached_tables(void)
...
@@ -118,7 +118,7 @@ static void print_cached_tables(void)
printf
(
"unused_links isn't linked properly
\n
"
);
printf
(
"unused_links isn't linked properly
\n
"
);
return
;
return
;
}
}
}
while
(
count
++
<
table_cache_count
&&
(
lnk
=
lnk
->
next
)
!=
start_link
);
}
while
(
count
++
<
cached_open_tables
()
&&
(
lnk
=
lnk
->
next
)
!=
start_link
);
if
(
lnk
!=
start_link
)
if
(
lnk
!=
start_link
)
{
{
printf
(
"Unused_links aren't connected
\n
"
);
printf
(
"Unused_links aren't connected
\n
"
);
...
@@ -416,7 +416,7 @@ static void display_table_locks(void)
...
@@ -416,7 +416,7 @@ static void display_table_locks(void)
void
*
saved_base
;
void
*
saved_base
;
DYNAMIC_ARRAY
saved_table_locks
;
DYNAMIC_ARRAY
saved_table_locks
;
(
void
)
my_init_dynamic_array
(
&
saved_table_locks
,
sizeof
(
TABLE_LOCK_INFO
),
table_cache_count
+
20
,
50
);
(
void
)
my_init_dynamic_array
(
&
saved_table_locks
,
sizeof
(
TABLE_LOCK_INFO
),
cached_open_tables
()
+
20
,
50
);
mysql_mutex_lock
(
&
THR_LOCK_lock
);
mysql_mutex_lock
(
&
THR_LOCK_lock
);
for
(
list
=
thr_lock_thread_list
;
list
;
list
=
list_rest
(
list
))
for
(
list
=
thr_lock_thread_list
;
list
;
list
=
list_rest
(
list
))
{
{
...
...
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