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
8d098333
Commit
8d098333
authored
Jun 22, 2019
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19833 Reuse new I_S table definition helper classes for Mronga
parent
1cbbe354
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
29 deletions
+37
-29
storage/mroonga/ha_mroonga.cpp
storage/mroonga/ha_mroonga.cpp
+7
-29
storage/mroonga/mysql-test/mroonga/storage/r/i_s.result
storage/mroonga/mysql-test/mroonga/storage/r/i_s.result
+7
-0
storage/mroonga/mysql-test/mroonga/storage/t/i_s.test
storage/mroonga/mysql-test/mroonga/storage/t/i_s.test
+23
-0
No files found.
storage/mroonga/ha_mroonga.cpp
View file @
8d098333
...
@@ -1271,37 +1271,15 @@ static struct st_mysql_information_schema i_s_info =
...
@@ -1271,37 +1271,15 @@ static struct st_mysql_information_schema i_s_info =
MYSQL_INFORMATION_SCHEMA_INTERFACE_VERSION
MYSQL_INFORMATION_SCHEMA_INTERFACE_VERSION
};
};
namespace
Show
{
static
ST_FIELD_INFO
i_s_mrn_stats_fields_info
[]
=
static
ST_FIELD_INFO
i_s_mrn_stats_fields_info
[]
=
{
{
{
Column
(
"VERSION"
,
Varchar
(
40
),
NOT_NULL
),
"VERSION"
,
Column
(
"rows_written"
,
SLong
(),
NOT_NULL
,
"Rows written to Groonga"
),
40
,
Column
(
"rows_read"
,
SLong
(),
NOT_NULL
,
"Rows read from Groonga"
),
MYSQL_TYPE_STRING
,
CEnd
()
0
,
0
,
""
,
SKIP_OPEN_TABLE
},
{
"rows_written"
,
MY_INT32_NUM_DECIMAL_DIGITS
,
MYSQL_TYPE_LONG
,
0
,
0
,
"Rows written to Groonga"
,
SKIP_OPEN_TABLE
},
{
"rows_read"
,
MY_INT32_NUM_DECIMAL_DIGITS
,
MYSQL_TYPE_LONG
,
0
,
0
,
"Rows read from Groonga"
,
SKIP_OPEN_TABLE
},
{
0
,
0
,
MYSQL_TYPE_NULL
,
0
,
0
,
0
,
0
}
};
};
}
// namespace Show
static
int
i_s_mrn_stats_deinit
(
void
*
p
)
static
int
i_s_mrn_stats_deinit
(
void
*
p
)
{
{
...
@@ -1330,7 +1308,7 @@ static int i_s_mrn_stats_init(void* p)
...
@@ -1330,7 +1308,7 @@ static int i_s_mrn_stats_init(void* p)
{
{
MRN_DBUG_ENTER_FUNCTION
();
MRN_DBUG_ENTER_FUNCTION
();
ST_SCHEMA_TABLE
*
schema
=
(
ST_SCHEMA_TABLE
*
)
p
;
ST_SCHEMA_TABLE
*
schema
=
(
ST_SCHEMA_TABLE
*
)
p
;
schema
->
fields_info
=
i_s_mrn_stats_fields_info
;
schema
->
fields_info
=
Show
::
i_s_mrn_stats_fields_info
;
schema
->
fill_table
=
i_s_mrn_stats_fill
;
schema
->
fill_table
=
i_s_mrn_stats_fill
;
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
...
...
storage/mroonga/mysql-test/mroonga/storage/r/i_s.result
0 → 100644
View file @
8d098333
SHOW CREATE TABLE INFORMATION_SCHEMA.MROONGA_STATS;
Table Create Table
Mroonga_stats CREATE TEMPORARY TABLE `Mroonga_stats` (
`VERSION` varchar(40) NOT NULL DEFAULT '',
`rows_written` int(11) NOT NULL DEFAULT 0,
`rows_read` int(11) NOT NULL DEFAULT 0
) ENGINE=MEMORY DEFAULT CHARSET=utf8
storage/mroonga/mysql-test/mroonga/storage/t/i_s.test
0 → 100644
View file @
8d098333
# Copyright (c) 2019, MariaDB
# Copyright(C) 2014 Naoya Murakami <naoya@createfield.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
--
source
include
/
not_embedded
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga
.
inc
SHOW
CREATE
TABLE
INFORMATION_SCHEMA
.
MROONGA_STATS
;
--
source
../../
include
/
mroonga
/
have_mroonga_deinit
.
inc
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