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
05105a02
Commit
05105a02
authored
Mar 22, 2006
by
pappa@c-8808e253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual merge
parent
3dc4635c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
sql/partition_element.h
sql/partition_element.h
+5
-1
sql/partition_info.h
sql/partition_info.h
+7
-2
sql/sql_partition.cc
sql/sql_partition.cc
+2
-2
No files found.
sql/partition_element.h
View file @
05105a02
...
@@ -36,6 +36,8 @@ enum partition_state {
...
@@ -36,6 +36,8 @@ enum partition_state {
PART_IS_ADDED
=
8
PART_IS_ADDED
=
8
};
};
struct
st_table_log_memory_entry
;
class
partition_element
:
public
Sql_alloc
{
class
partition_element
:
public
Sql_alloc
{
public:
public:
List
<
partition_element
>
subpartitions
;
List
<
partition_element
>
subpartitions
;
...
@@ -44,6 +46,7 @@ public:
...
@@ -44,6 +46,7 @@ public:
ulonglong
part_min_rows
;
ulonglong
part_min_rows
;
char
*
partition_name
;
char
*
partition_name
;
char
*
tablespace_name
;
char
*
tablespace_name
;
struct
st_table_log_memory_entry
*
log_entry
;
longlong
range_value
;
longlong
range_value
;
char
*
part_comment
;
char
*
part_comment
;
char
*
data_file_name
;
char
*
data_file_name
;
...
@@ -55,7 +58,8 @@ public:
...
@@ -55,7 +58,8 @@ public:
partition_element
()
partition_element
()
:
part_max_rows
(
0
),
part_min_rows
(
0
),
partition_name
(
NULL
),
:
part_max_rows
(
0
),
part_min_rows
(
0
),
partition_name
(
NULL
),
tablespace_name
(
NULL
),
range_value
(
0
),
part_comment
(
NULL
),
tablespace_name
(
NULL
),
log_entry
(
NULL
),
range_value
(
0
),
part_comment
(
NULL
),
data_file_name
(
NULL
),
index_file_name
(
NULL
),
data_file_name
(
NULL
),
index_file_name
(
NULL
),
engine_type
(
NULL
),
part_state
(
PART_NORMAL
),
engine_type
(
NULL
),
part_state
(
PART_NORMAL
),
nodegroup_id
(
UNDEF_NODEGROUP
),
has_null_value
(
FALSE
)
nodegroup_id
(
UNDEF_NODEGROUP
),
has_null_value
(
FALSE
)
...
...
sql/partition_info.h
View file @
05105a02
...
@@ -28,7 +28,7 @@ typedef int (*get_part_id_func)(partition_info *part_info,
...
@@ -28,7 +28,7 @@ typedef int (*get_part_id_func)(partition_info *part_info,
longlong
*
func_value
);
longlong
*
func_value
);
typedef
uint32
(
*
get_subpart_id_func
)(
partition_info
*
part_info
);
typedef
uint32
(
*
get_subpart_id_func
)(
partition_info
*
part_info
);
struct
st_table_log_memory_entry
;
class
partition_info
:
public
Sql_alloc
class
partition_info
:
public
Sql_alloc
{
{
...
@@ -77,6 +77,10 @@ public:
...
@@ -77,6 +77,10 @@ public:
Item
*
item_free_list
;
Item
*
item_free_list
;
struct
st_table_log_memory_entry
*
first_log_entry
;
struct
st_table_log_memory_entry
*
exec_log_entry
;
struct
st_table_log_memory_entry
*
frm_log_entry
;
/*
/*
A bitmap of partitions used by the current query.
A bitmap of partitions used by the current query.
Usage pattern:
Usage pattern:
...
@@ -191,6 +195,7 @@ public:
...
@@ -191,6 +195,7 @@ public:
part_field_array
(
NULL
),
subpart_field_array
(
NULL
),
part_field_array
(
NULL
),
subpart_field_array
(
NULL
),
full_part_field_array
(
NULL
),
full_part_field_array
(
NULL
),
part_expr
(
NULL
),
subpart_expr
(
NULL
),
item_free_list
(
NULL
),
part_expr
(
NULL
),
subpart_expr
(
NULL
),
item_free_list
(
NULL
),
first_log_entry
(
NULL
),
exec_log_entry
(
NULL
),
frm_log_entry
(
NULL
),
list_array
(
NULL
),
list_array
(
NULL
),
part_info_string
(
NULL
),
part_info_string
(
NULL
),
part_func_string
(
NULL
),
subpart_func_string
(
NULL
),
part_func_string
(
NULL
),
subpart_func_string
(
NULL
),
...
...
sql/sql_partition.cc
View file @
05105a02
...
@@ -5157,7 +5157,7 @@ write_log_changed_partitions(ALTER_PARTITION_PARAM_TYPE *lpt,
...
@@ -5157,7 +5157,7 @@ write_log_changed_partitions(ALTER_PARTITION_PARAM_TYPE *lpt,
if
(
part_elem
->
part_state
==
PART_IS_CHANGED
||
if
(
part_elem
->
part_state
==
PART_IS_CHANGED
||
(
part_elem
->
part_state
==
PART_IS_ADDED
&&
temp_partitions
))
(
part_elem
->
part_state
==
PART_IS_ADDED
&&
temp_partitions
))
{
{
if
(
is_sub_partitioned
(
part_info
))
if
(
part_info
->
is_sub_partitioned
(
))
{
{
List_iterator
<
partition_element
>
sub_it
(
part_elem
->
subpartitions
);
List_iterator
<
partition_element
>
sub_it
(
part_elem
->
subpartitions
);
uint
no_subparts
=
part_info
->
no_subparts
;
uint
no_subparts
=
part_info
->
no_subparts
;
...
@@ -5271,7 +5271,7 @@ write_log_dropped_partitions(ALTER_PARTITION_PARAM_TYPE *lpt,
...
@@ -5271,7 +5271,7 @@ write_log_dropped_partitions(ALTER_PARTITION_PARAM_TYPE *lpt,
name_variant
=
TEMP_PART_NAME
;
name_variant
=
TEMP_PART_NAME
;
else
else
name_variant
=
NORMAL_PART_NAME
;
name_variant
=
NORMAL_PART_NAME
;
if
(
is_sub_partitioned
(
part_info
))
if
(
part_info
->
is_sub_partitioned
(
))
{
{
List_iterator
<
partition_element
>
sub_it
(
part_elem
->
subpartitions
);
List_iterator
<
partition_element
>
sub_it
(
part_elem
->
subpartitions
);
uint
no_subparts
=
part_info
->
no_subparts
;
uint
no_subparts
=
part_info
->
no_subparts
;
...
...
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