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
85b3ac68
Commit
85b3ac68
authored
Aug 17, 2006
by
mikael/pappa@dator5.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#21350: Fix correct error handling when using DATA DIRECTORY and INDEX DIRECTORY
Review fixes
parent
3e6b0b0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
sql/ha_partition.cc
sql/ha_partition.cc
+5
-4
No files found.
sql/ha_partition.cc
View file @
85b3ac68
...
...
@@ -1752,6 +1752,8 @@ int ha_partition::set_up_table_before_create(TABLE *table,
partition_element
*
part_elem
)
{
int
error
=
0
;
const
char
*
partition_name
;
THD
*
thd
=
current_thd
;
DBUG_ENTER
(
"set_up_table_before_create"
);
if
(
!
part_elem
)
...
...
@@ -1762,17 +1764,16 @@ int ha_partition::set_up_table_before_create(TABLE *table,
}
table
->
s
->
max_rows
=
part_elem
->
part_max_rows
;
table
->
s
->
min_rows
=
part_elem
->
part_min_rows
;
const
char
*
partition_name
=
strrchr
(
partition_name_with_path
,
FN_LIBCHAR
);
partition_name
=
strrchr
(
partition_name_with_path
,
FN_LIBCHAR
);
if
((
part_elem
->
index_file_name
&&
(
error
=
append_file_to_dir
(
current_
thd
,
(
error
=
append_file_to_dir
(
thd
,
(
const
char
**
)
&
part_elem
->
index_file_name
,
partition_name
+
1
)))
||
(
part_elem
->
data_file_name
&&
(
error
=
append_file_to_dir
(
current_
thd
,
(
error
=
append_file_to_dir
(
thd
,
(
const
char
**
)
&
part_elem
->
data_file_name
,
partition_name
+
1
))))
{
DBUG_ASSERT
(
error
);
DBUG_RETURN
(
error
);
}
info
->
index_file_name
=
part_elem
->
index_file_name
;
...
...
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