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
c42ffc1c
Commit
c42ffc1c
authored
Mar 22, 2016
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup All_share_tables_list definition
parent
1fc2c63f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
19 deletions
+5
-19
sql/table.h
sql/table.h
+1
-17
sql/table_cache.cc
sql/table_cache.cc
+1
-1
sql/table_cache.h
sql/table_cache.h
+3
-1
No files found.
sql/table.h
View file @
c42ffc1c
...
...
@@ -491,9 +491,6 @@ TABLE_CATEGORY get_table_category(const LEX_STRING *db,
const
LEX_STRING
*
name
);
struct
TABLE_share
;
struct
All_share_tables
;
typedef
struct
st_table_field_type
{
LEX_STRING
name
;
...
...
@@ -1009,7 +1006,7 @@ struct TABLE
One should use methods of I_P_List template instead.
*/
TABLE
*
share_all_next
,
**
share_all_prev
;
friend
struct
All_share_tables
;
friend
struct
TDC_element
;
public:
...
...
@@ -1410,19 +1407,6 @@ struct TABLE_share
};
struct
All_share_tables
{
static
inline
TABLE
**
next_ptr
(
TABLE
*
l
)
{
return
&
l
->
share_all_next
;
}
static
inline
TABLE
***
prev_ptr
(
TABLE
*
l
)
{
return
&
l
->
share_all_prev
;
}
};
enum
enum_schema_table_state
{
NOT_PROCESSED
=
0
,
...
...
sql/table_cache.cc
View file @
c42ffc1c
...
...
@@ -841,7 +841,7 @@ bool tdc_remove_table(THD *thd, enum_tdc_remove_table_type remove_type,
const
char
*
db
,
const
char
*
table_name
,
bool
kill_delayed_threads
)
{
I_P_List
<
TABLE
,
TABLE_share
>
purge_tables
;
TDC_element
::
TABLE_list
purge_tables
;
TABLE
*
table
;
TDC_element
*
element
;
uint
my_refs
=
1
;
...
...
sql/table_cache.h
View file @
c42ffc1c
...
...
@@ -31,7 +31,9 @@ class TDC_element
TABLE_SHARE
*
share
;
typedef
I_P_List
<
TABLE
,
TABLE_share
>
TABLE_list
;
typedef
I_P_List
<
TABLE
,
All_share_tables
>
All_share_tables_list
;
typedef
I_P_List
<
TABLE
,
I_P_List_adapter
<
TABLE
,
&
TABLE
::
share_all_next
,
&
TABLE
::
share_all_prev
>
>
All_share_tables_list
;
/**
Protects ref_count, m_flush_tickets, all_tables, free_tables, flushed,
all_tables_refs.
...
...
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