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
c571b6e0
Commit
c571b6e0
authored
Jun 06, 2007
by
holyfoot/hf@hfmain.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk@192.168.21.1:mysql-5.1-opt
into mysql.com:/home/hf/work/28477/my51-28477
parents
0c0201c9
c17b48fb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
sql/sql_table.cc
sql/sql_table.cc
+11
-1
sql/table.cc
sql/table.cc
+2
-1
sql/table.h
sql/table.h
+1
-0
No files found.
sql/sql_table.cc
View file @
c571b6e0
...
...
@@ -1249,6 +1249,7 @@ bool mysql_write_frm(ALTER_PARTITION_PARAM_TYPE *lpt, uint flags)
if
(
part_info
)
{
TABLE_SHARE
*
share
=
lpt
->
table
->
s
;
if
(
!
(
part_syntax_buf
=
generate_partition_syntax
(
part_info
,
&
syntax_len
,
TRUE
,
TRUE
)))
...
...
@@ -1256,7 +1257,16 @@ bool mysql_write_frm(ALTER_PARTITION_PARAM_TYPE *lpt, uint flags)
DBUG_RETURN
(
TRUE
);
}
part_info
->
part_info_string
=
part_syntax_buf
;
part_info
->
part_info_len
=
syntax_len
;
share
->
partition_info_len
=
part_info
->
part_info_len
=
syntax_len
;
if
(
share
->
partition_info_buffer_size
<
syntax_len
+
1
)
{
share
->
partition_info_buffer_size
=
syntax_len
+
1
;
if
(
!
(
share
->
partition_info
=
alloc_root
(
&
share
->
mem_root
,
syntax_len
+
1
)))
DBUG_RETURN
(
TRUE
);
}
memcpy
((
char
*
)
share
->
partition_info
,
part_syntax_buf
,
syntax_len
+
1
);
}
}
#endif
...
...
sql/table.cc
View file @
c571b6e0
...
...
@@ -726,7 +726,8 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head,
{
uint32
partition_info_len
=
uint4korr
(
next_chunk
);
#ifdef WITH_PARTITION_STORAGE_ENGINE
if
((
share
->
partition_info_len
=
partition_info_len
))
if
((
share
->
partition_info_buffer_size
=
share
->
partition_info_len
=
partition_info_len
))
{
if
(
!
(
share
->
partition_info
=
(
char
*
)
memdup_root
(
&
share
->
mem_root
,
next_chunk
+
4
,
...
...
sql/table.h
View file @
c571b6e0
...
...
@@ -243,6 +243,7 @@ typedef struct st_table_share
bool
auto_partitioned
;
const
char
*
partition_info
;
uint
partition_info_len
;
uint
partition_info_buffer_size
;
const
char
*
part_state
;
uint
part_state_len
;
handlerton
*
default_part_db_type
;
...
...
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