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
c43f804c
Commit
c43f804c
authored
Apr 26, 2011
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
cd44be1a
bdaaee5d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
mysql-test/suite/parts/inc/partition_check_drop.inc
mysql-test/suite/parts/inc/partition_check_drop.inc
+1
-1
mysql-test/suite/parts/inc/partition_layout_check1.inc
mysql-test/suite/parts/inc/partition_layout_check1.inc
+3
-0
mysql-test/suite/parts/inc/partition_layout_check2.inc
mysql-test/suite/parts/inc/partition_layout_check2.inc
+3
-0
sql/ha_partition.cc
sql/ha_partition.cc
+5
-5
No files found.
mysql-test/suite/parts/inc/partition_check_drop.inc
View file @
c43f804c
...
@@ -37,7 +37,7 @@ if ($do_file_tests)
...
@@ -37,7 +37,7 @@ if ($do_file_tests)
eval
SET
@
aux
=
load_file
(
'$ls_file'
);
eval
SET
@
aux
=
load_file
(
'$ls_file'
);
# clean up
# clean up
remove_file
$ls_file
;
--
remove_file
$ls_file
}
}
if
(
!
$do_file_tests
)
if
(
!
$do_file_tests
)
{
{
...
...
mysql-test/suite/parts/inc/partition_layout_check1.inc
View file @
c43f804c
...
@@ -45,6 +45,9 @@ if ($do_file_tests)
...
@@ -45,6 +45,9 @@ if ($do_file_tests)
--
list_files_append_file
$ls_file
$MYSQLTEST_VARDIR
/
mysql
-
test
-
idx
-
dir
t1
*
--
list_files_append_file
$ls_file
$MYSQLTEST_VARDIR
/
mysql
-
test
-
idx
-
dir
t1
*
}
}
eval
SET
@
aux
=
load_file
(
'$ls_file'
);
eval
SET
@
aux
=
load_file
(
'$ls_file'
);
# clean up
--
remove_file
$ls_file
}
}
if
(
!
$do_file_tests
)
if
(
!
$do_file_tests
)
{
{
...
...
mysql-test/suite/parts/inc/partition_layout_check2.inc
View file @
c43f804c
...
@@ -43,6 +43,9 @@ if ($do_file_tests)
...
@@ -43,6 +43,9 @@ if ($do_file_tests)
--
list_files_append_file
$ls_file
$MYSQLTEST_VARDIR
/
mysql
-
test
-
idx
-
dir
t1
*
--
list_files_append_file
$ls_file
$MYSQLTEST_VARDIR
/
mysql
-
test
-
idx
-
dir
t1
*
}
}
eval
SET
@
aux
=
load_file
(
'$ls_file'
);
eval
SET
@
aux
=
load_file
(
'$ls_file'
);
# clean up
--
remove_file
$ls_file
}
}
if
(
!
$do_file_tests
)
if
(
!
$do_file_tests
)
{
{
...
...
sql/ha_partition.cc
View file @
c43f804c
...
@@ -2629,7 +2629,7 @@ void ha_data_partition_destroy(HA_DATA_PARTITION* ha_part_data)
...
@@ -2629,7 +2629,7 @@ void ha_data_partition_destroy(HA_DATA_PARTITION* ha_part_data)
int
ha_partition
::
open
(
const
char
*
name
,
int
mode
,
uint
test_if_locked
)
int
ha_partition
::
open
(
const
char
*
name
,
int
mode
,
uint
test_if_locked
)
{
{
char
*
name_buffer_ptr
;
char
*
name_buffer_ptr
;
int
error
;
int
error
=
HA_ERR_INITIALIZATION
;
uint
alloc_len
;
uint
alloc_len
;
handler
**
file
;
handler
**
file
;
char
name_buff
[
FN_REFLEN
];
char
name_buff
[
FN_REFLEN
];
...
@@ -2643,7 +2643,7 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
...
@@ -2643,7 +2643,7 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
m_open_test_lock
=
test_if_locked
;
m_open_test_lock
=
test_if_locked
;
m_part_field_array
=
m_part_info
->
full_part_field_array
;
m_part_field_array
=
m_part_info
->
full_part_field_array
;
if
(
get_from_handler_file
(
name
,
&
table
->
mem_root
,
test
(
m_is_clone_of
)))
if
(
get_from_handler_file
(
name
,
&
table
->
mem_root
,
test
(
m_is_clone_of
)))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
error
);
name_buffer_ptr
=
m_name_buffer_ptr
;
name_buffer_ptr
=
m_name_buffer_ptr
;
m_start_key
.
length
=
0
;
m_start_key
.
length
=
0
;
m_rec0
=
table
->
record
[
0
];
m_rec0
=
table
->
record
[
0
];
...
@@ -2654,7 +2654,7 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
...
@@ -2654,7 +2654,7 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
{
{
if
(
!
(
m_ordered_rec_buffer
=
(
uchar
*
)
my_malloc
(
alloc_len
,
MYF
(
MY_WME
))))
if
(
!
(
m_ordered_rec_buffer
=
(
uchar
*
)
my_malloc
(
alloc_len
,
MYF
(
MY_WME
))))
{
{
DBUG_RETURN
(
1
);
DBUG_RETURN
(
error
);
}
}
{
{
/*
/*
...
@@ -2677,7 +2677,7 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
...
@@ -2677,7 +2677,7 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
/* Initialize the bitmap we use to minimize ha_start_bulk_insert calls */
/* Initialize the bitmap we use to minimize ha_start_bulk_insert calls */
if
(
bitmap_init
(
&
m_bulk_insert_started
,
NULL
,
m_tot_parts
+
1
,
FALSE
))
if
(
bitmap_init
(
&
m_bulk_insert_started
,
NULL
,
m_tot_parts
+
1
,
FALSE
))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
error
);
bitmap_clear_all
(
&
m_bulk_insert_started
);
bitmap_clear_all
(
&
m_bulk_insert_started
);
/* Initialize the bitmap we use to determine what partitions are used */
/* Initialize the bitmap we use to determine what partitions are used */
if
(
!
m_is_clone_of
)
if
(
!
m_is_clone_of
)
...
@@ -2686,7 +2686,7 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
...
@@ -2686,7 +2686,7 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
if
(
bitmap_init
(
&
(
m_part_info
->
used_partitions
),
NULL
,
m_tot_parts
,
TRUE
))
if
(
bitmap_init
(
&
(
m_part_info
->
used_partitions
),
NULL
,
m_tot_parts
,
TRUE
))
{
{
bitmap_free
(
&
m_bulk_insert_started
);
bitmap_free
(
&
m_bulk_insert_started
);
DBUG_RETURN
(
1
);
DBUG_RETURN
(
error
);
}
}
bitmap_set_all
(
&
(
m_part_info
->
used_partitions
));
bitmap_set_all
(
&
(
m_part_info
->
used_partitions
));
}
}
...
...
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