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
1cbbe354
Commit
1cbbe354
authored
Jun 22, 2019
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19832 Reuse new I_S table definition helper classes for Spider
parent
1c27a050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
storage/spider/spd_i_s.cc
storage/spider/spd_i_s.cc
+13
-17
No files found.
storage/spider/spd_i_s.cc
View file @
1cbbe354
...
@@ -44,25 +44,21 @@ extern ulonglong spider_free_mem_count[SPIDER_MEM_CALC_LIST_NUM];
...
@@ -44,25 +44,21 @@ extern ulonglong spider_free_mem_count[SPIDER_MEM_CALC_LIST_NUM];
static
struct
st_mysql_storage_engine
spider_i_s_info
=
static
struct
st_mysql_storage_engine
spider_i_s_info
=
{
MYSQL_INFORMATION_SCHEMA_INTERFACE_VERSION
};
{
MYSQL_INFORMATION_SCHEMA_INTERFACE_VERSION
};
namespace
Show
{
static
ST_FIELD_INFO
spider_i_s_alloc_mem_fields_info
[]
=
static
ST_FIELD_INFO
spider_i_s_alloc_mem_fields_info
[]
=
{
{
{
"ID"
,
10
,
MYSQL_TYPE_LONG
,
0
,
MY_I_S_UNSIGNED
,
"id"
,
SKIP_OPEN_TABLE
},
Column
(
"ID"
,
ULong
(
10
),
NOT_NULL
,
"id"
),
{
"FUNC_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
Column
(
"FUNC_NAME"
,
Varchar
(
64
),
NULLABLE
,
"func_name"
),
MY_I_S_MAYBE_NULL
,
"func_name"
,
SKIP_OPEN_TABLE
},
Column
(
"FILE_NAME"
,
Varchar
(
64
),
NULLABLE
,
"file_name"
),
{
"FILE_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
Column
(
"LINE_NO"
,
ULong
(
10
),
NULLABLE
,
"line_no"
),
MY_I_S_MAYBE_NULL
,
"file_name"
,
SKIP_OPEN_TABLE
},
Column
(
"TOTAL_ALLOC_MEM"
,
ULonglong
(
20
),
NULLABLE
,
"total_alloc_mem"
),
{
"LINE_NO"
,
10
,
MYSQL_TYPE_LONG
,
0
,
Column
(
"CURRENT_ALLOC_MEM"
,
SLonglong
(
20
),
NULLABLE
,
"current_alloc_mem"
),
MY_I_S_UNSIGNED
|
MY_I_S_MAYBE_NULL
,
"line_no"
,
SKIP_OPEN_TABLE
},
Column
(
"ALLOC_MEM_COUNT"
,
ULonglong
(
20
),
NULLABLE
,
"alloc_mem_count"
),
{
"TOTAL_ALLOC_MEM"
,
20
,
MYSQL_TYPE_LONGLONG
,
0
,
Column
(
"FREE_MEM_COUNT"
,
ULonglong
(
20
),
NULLABLE
,
"free_mem_count"
),
MY_I_S_UNSIGNED
|
MY_I_S_MAYBE_NULL
,
"total_alloc_mem"
,
SKIP_OPEN_TABLE
},
CEnd
()
{
"CURRENT_ALLOC_MEM"
,
20
,
MYSQL_TYPE_LONGLONG
,
0
,
MY_I_S_MAYBE_NULL
,
"current_alloc_mem"
,
SKIP_OPEN_TABLE
},
{
"ALLOC_MEM_COUNT"
,
20
,
MYSQL_TYPE_LONGLONG
,
0
,
MY_I_S_UNSIGNED
|
MY_I_S_MAYBE_NULL
,
"alloc_mem_count"
,
SKIP_OPEN_TABLE
},
{
"FREE_MEM_COUNT"
,
20
,
MYSQL_TYPE_LONGLONG
,
0
,
MY_I_S_UNSIGNED
|
MY_I_S_MAYBE_NULL
,
"free_mem_count"
,
SKIP_OPEN_TABLE
},
{
NULL
,
0
,
MYSQL_TYPE_STRING
,
0
,
0
,
NULL
,
0
}
};
};
}
// namespace Show
static
int
spider_i_s_alloc_mem_fill_table
(
static
int
spider_i_s_alloc_mem_fill_table
(
THD
*
thd
,
THD
*
thd
,
...
@@ -117,7 +113,7 @@ static int spider_i_s_alloc_mem_init(
...
@@ -117,7 +113,7 @@ static int spider_i_s_alloc_mem_init(
)
{
)
{
ST_SCHEMA_TABLE
*
schema
=
(
ST_SCHEMA_TABLE
*
)
p
;
ST_SCHEMA_TABLE
*
schema
=
(
ST_SCHEMA_TABLE
*
)
p
;
DBUG_ENTER
(
"spider_i_s_alloc_mem_init"
);
DBUG_ENTER
(
"spider_i_s_alloc_mem_init"
);
schema
->
fields_info
=
spider_i_s_alloc_mem_fields_info
;
schema
->
fields_info
=
Show
::
spider_i_s_alloc_mem_fields_info
;
schema
->
fill_table
=
spider_i_s_alloc_mem_fill_table
;
schema
->
fill_table
=
spider_i_s_alloc_mem_fill_table
;
schema
->
idx_field1
=
0
;
schema
->
idx_field1
=
0
;
DBUG_RETURN
(
0
);
DBUG_RETURN
(
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