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
cce9b168
Commit
cce9b168
authored
Jan 26, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: pass TABLE_SHARE to store_key_options()
parent
d26ad24c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
sql/sql_show.cc
sql/sql_show.cc
+4
-4
storage/maria/ha_maria.cc
storage/maria/ha_maria.cc
+1
-0
storage/myisam/ha_myisam.cc
storage/myisam/ha_myisam.cc
+1
-0
No files found.
sql/sql_show.cc
View file @
cce9b168
...
...
@@ -150,7 +150,7 @@ static const LEX_CSTRING ha_choice_values[]=
{
STRING_WITH_LEN
(
"1"
)
}
};
static
void
store_key_options
(
THD
*
,
String
*
,
TABLE
*
,
KEY
*
);
static
void
store_key_options
(
THD
*
,
String
*
,
TABLE
_SHARE
*
,
KEY
*
);
static
int
show_create_view
(
THD
*
thd
,
TABLE_LIST
*
table
,
String
*
buff
);
static
int
show_create_sequence
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
...
...
@@ -2433,7 +2433,7 @@ int show_create_table_ex(THD *thd, TABLE_LIST *table_list,
}
packet
->
append
(
')'
);
store_key_options
(
thd
,
packet
,
table
,
&
tabl
e
->
key_info
[
i
]);
store_key_options
(
thd
,
packet
,
share
,
&
shar
e
->
key_info
[
i
]);
if
(
key_info
->
parser
)
{
LEX_CSTRING
*
parser_name
=
plugin_name
(
key_info
->
parser
);
...
...
@@ -2540,7 +2540,7 @@ int show_create_table_ex(THD *thd, TABLE_LIST *table_list,
}
static
void
store_key_options
(
THD
*
thd
,
String
*
packet
,
TABLE
*
tabl
e
,
static
void
store_key_options
(
THD
*
thd
,
String
*
packet
,
TABLE
_SHARE
*
shar
e
,
KEY
*
key_info
)
{
bool
limited_mysql_mode
=
(
thd
->
variables
.
sql_mode
&
...
...
@@ -2570,7 +2570,7 @@ static void store_key_options(THD *thd, String *packet, TABLE *table,
packet
->
append
(
STRING_WITH_LEN
(
" USING RTREE"
));
if
((
key_info
->
flags
&
HA_USES_BLOCK_SIZE
)
&&
table
->
s
->
key_block_size
!=
key_info
->
block_size
)
share
->
key_block_size
!=
key_info
->
block_size
)
{
packet
->
append
(
STRING_WITH_LEN
(
" KEY_BLOCK_SIZE="
));
packet
->
append_ulonglong
(
key_info
->
block_size
);
...
...
storage/maria/ha_maria.cc
View file @
cce9b168
...
...
@@ -1227,6 +1227,7 @@ int ha_maria::open(const char *name, int mode, uint test_if_locked)
file
->
s
->
keyinfo
[
i
].
parser
=
(
struct
st_mysql_ftparser
*
)
plugin_decl
(
parser
)
->
info
;
table
->
key_info
[
i
].
block_size
=
file
->
s
->
keyinfo
[
i
].
block_length
;
table
->
s
->
key_info
[
i
].
block_size
=
table
->
key_info
[
i
].
block_size
;
}
my_errno
=
0
;
...
...
storage/myisam/ha_myisam.cc
View file @
cce9b168
...
...
@@ -946,6 +946,7 @@ int ha_myisam::open(const char *name, int mode, uint test_if_locked)
file
->
s
->
keyinfo
[
i
].
parser
=
(
struct
st_mysql_ftparser
*
)
plugin_decl
(
parser
)
->
info
;
table
->
key_info
[
i
].
block_size
=
file
->
s
->
keyinfo
[
i
].
block_length
;
table
->
s
->
key_info
[
i
].
block_size
=
table
->
key_info
[
i
].
block_size
;
}
my_errno
=
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