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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
5f69c8a5
Commit
5f69c8a5
authored
Apr 09, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_create_table: remove unused argument
parent
556f5684
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
9 deletions
+6
-9
sql/datadict.cc
sql/datadict.cc
+1
-1
sql/handler.cc
sql/handler.cc
+2
-4
sql/handler.h
sql/handler.h
+1
-2
sql/sql_truncate.cc
sql/sql_truncate.cc
+1
-1
sql/unireg.cc
sql/unireg.cc
+1
-1
No files found.
sql/datadict.cc
View file @
5f69c8a5
...
...
@@ -180,7 +180,7 @@ bool dd_recreate_table(THD *thd, const char *db, const char *table_name)
build_table_filename
(
path
,
sizeof
(
path
)
-
1
,
db
,
table_name
,
""
,
0
);
/* Attempt to reconstruct the table. */
error
=
ha_create_table
(
thd
,
path
,
db
,
table_name
,
&
create_info
,
TRUE
);
error
=
ha_create_table
(
thd
,
path
,
db
,
table_name
,
&
create_info
);
DBUG_RETURN
(
error
);
}
...
...
sql/handler.cc
View file @
5f69c8a5
...
...
@@ -4132,8 +4132,7 @@ end:
*/
int
ha_create_table
(
THD
*
thd
,
const
char
*
path
,
const
char
*
db
,
const
char
*
table_name
,
HA_CREATE_INFO
*
create_info
,
bool
update_create_info
)
HA_CREATE_INFO
*
create_info
)
{
int
error
=
1
;
TABLE
table
;
...
...
@@ -4148,8 +4147,7 @@ int ha_create_table(THD *thd, const char *path,
TRUE
))
goto
err
;
if
(
update_create_info
)
update_create_info_from_table
(
create_info
,
&
table
);
update_create_info_from_table
(
create_info
,
&
table
);
name
=
get_canonical_filename
(
table
.
file
,
share
.
path
.
str
,
name_buff
);
...
...
sql/handler.h
View file @
5f69c8a5
...
...
@@ -3093,8 +3093,7 @@ void ha_checkpoint_state(bool disable);
void
ha_commit_checkpoint_request
(
void
*
cookie
,
void
(
*
pre_hook
)(
void
*
));
int
ha_create_table
(
THD
*
thd
,
const
char
*
path
,
const
char
*
db
,
const
char
*
table_name
,
HA_CREATE_INFO
*
create_info
,
bool
update_create_info
);
HA_CREATE_INFO
*
create_info
);
int
ha_delete_table
(
THD
*
thd
,
handlerton
*
db_type
,
const
char
*
path
,
const
char
*
db
,
const
char
*
alias
,
bool
generate_warning
);
...
...
sql/sql_truncate.cc
View file @
5f69c8a5
...
...
@@ -276,7 +276,7 @@ static bool recreate_temporary_table(THD *thd, TABLE *table)
on table and schema names.
*/
ha_create_table
(
thd
,
share
->
normalized_path
.
str
,
share
->
db
.
str
,
share
->
table_name
.
str
,
&
create_info
,
1
);
share
->
table_name
.
str
,
&
create_info
);
if
(
open_table_uncached
(
thd
,
share
->
path
.
str
,
share
->
db
.
str
,
share
->
table_name
.
str
,
TRUE
))
...
...
sql/unireg.cc
View file @
5f69c8a5
...
...
@@ -478,7 +478,7 @@ int rea_create_table(THD *thd, const char *path,
if
(
!
create_info
->
frm_only
&&
(
file
->
ha_create_partitioning_metadata
(
path
,
NULL
,
CHF_CREATE_FLAG
,
create_info
)
||
ha_create_table
(
thd
,
path
,
db
,
table_name
,
create_info
,
0
)))
ha_create_table
(
thd
,
path
,
db
,
table_name
,
create_info
)))
goto
err_handler
;
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