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
679dbc76
Commit
679dbc76
authored
Apr 04, 2006
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into rurik.mysql.com:/home/igor/mysql-5.1
parents
0b60e056
8237832a
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
197 additions
and
70 deletions
+197
-70
mysql-test/r/partition_pruning.result
mysql-test/r/partition_pruning.result
+14
-0
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+0
-1
mysql-test/t/partition_pruning.test
mysql-test/t/partition_pruning.test
+14
-0
sql/ha_ndbcluster.h
sql/ha_ndbcluster.h
+0
-2
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+162
-65
sql/sql_partition.cc
sql/sql_partition.cc
+5
-1
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+2
-1
No files found.
mysql-test/r/partition_pruning.result
View file @
679dbc76
...
@@ -583,3 +583,17 @@ explain partitions select * from t1 where a>='a' and a <= 'dddd';
...
@@ -583,3 +583,17 @@ explain partitions select * from t1 where a>='a' and a <= 'dddd';
id select_type table partitions type possible_keys key key_len ref rows Extra
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p1,p2,p3,p4,p5 ALL NULL NULL NULL NULL 5 Using where
1 SIMPLE t1 p1,p2,p3,p4,p5 ALL NULL NULL NULL NULL 5 Using where
drop table t1;
drop table t1;
create table t1 (f_int1 integer) partition by list(abs(mod(f_int1,2)))
subpartition by hash(f_int1) subpartitions 2
(
partition part1 values in (0),
partition part2 values in (1),
partition part4 values in (null)
);
insert into t1 set f_int1 = null;
select * from t1 where f_int1 is null;
f_int1
NULL
explain partitions select * from t1 where f_int1 is null;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 part4_p2sp0 system NULL NULL NULL NULL 1
mysql-test/t/disabled.def
View file @
679dbc76
...
@@ -16,7 +16,6 @@ events : test case unstable. andrey will fix
...
@@ -16,7 +16,6 @@ events : test case unstable. andrey will fix
ndb_autodiscover : Needs to be fixed w.r.t binlog
ndb_autodiscover : Needs to be fixed w.r.t binlog
ndb_autodiscover2 : Needs to be fixed w.r.t binlog
ndb_autodiscover2 : Needs to be fixed w.r.t binlog
#ndb_binlog_basic : Results are not deterministic, Tomas will fix
#ndb_binlog_basic : Results are not deterministic, Tomas will fix
ndb_binlog_ddl_multi : Bug #18490 cluster: binlog events lost on remote mysqld (asynchronous)
#ndb_binlog_multi : Results are not deterministic, Tomas will fix
#ndb_binlog_multi : Results are not deterministic, Tomas will fix
ndb_cache2 : Bug #18597
ndb_cache2 : Bug #18597
ndb_gis : Bug #18600
ndb_gis : Bug #18600
...
...
mysql-test/t/partition_pruning.test
View file @
679dbc76
...
@@ -479,5 +479,19 @@ select * from t1 where a>='a' and a <= 'dddd';
...
@@ -479,5 +479,19 @@ select * from t1 where a>='a' and a <= 'dddd';
explain
partitions
select
*
from
t1
where
a
>=
'a'
and
a
<=
'dddd'
;
explain
partitions
select
*
from
t1
where
a
>=
'a'
and
a
<=
'dddd'
;
drop
table
t1
;
drop
table
t1
;
# BUG#18659: Assertion failure when subpartitioning is used and partition is
# "IS NULL"
create
table
t1
(
f_int1
integer
)
partition
by
list
(
abs
(
mod
(
f_int1
,
2
)))
subpartition
by
hash
(
f_int1
)
subpartitions
2
(
partition
part1
values
in
(
0
),
partition
part2
values
in
(
1
),
partition
part4
values
in
(
null
)
);
insert
into
t1
set
f_int1
=
null
;
select
*
from
t1
where
f_int1
is
null
;
explain
partitions
select
*
from
t1
where
f_int1
is
null
;
# No tests for NULLs in RANGE(monotonic_expr()) - they depend on BUG#15447
# No tests for NULLs in RANGE(monotonic_expr()) - they depend on BUG#15447
# being fixed.
# being fixed.
sql/ha_ndbcluster.h
View file @
679dbc76
...
@@ -115,8 +115,6 @@ typedef struct st_ndbcluster_share {
...
@@ -115,8 +115,6 @@ typedef struct st_ndbcluster_share {
TABLE
*
table
;
TABLE
*
table
;
NdbValue
*
ndb_value
[
2
];
NdbValue
*
ndb_value
[
2
];
MY_BITMAP
*
subscriber_bitmap
;
MY_BITMAP
*
subscriber_bitmap
;
MY_BITMAP
slock_bitmap
;
uint32
slock
[
256
/
32
];
// 256 bits for lock status of table
#endif
#endif
}
NDB_SHARE
;
}
NDB_SHARE
;
...
...
sql/ha_ndbcluster_binlog.cc
View file @
679dbc76
This diff is collapsed.
Click to expand it.
sql/sql_partition.cc
View file @
679dbc76
...
@@ -5521,7 +5521,11 @@ int get_part_iter_for_interval_via_walking(partition_info *part_info,
...
@@ -5521,7 +5521,11 @@ int get_part_iter_for_interval_via_walking(partition_info *part_info,
else
else
{
{
longlong
dummy
;
longlong
dummy
;
if
(
!
part_info
->
get_partition_id
(
part_info
,
&
part_id
,
&
dummy
))
int
res
=
part_info
->
is_sub_partitioned
()
?
part_info
->
get_part_partition_id
(
part_info
,
&
part_id
,
&
dummy
)
:
part_info
->
get_partition_id
(
part_info
,
&
part_id
,
&
dummy
);
if
(
!
res
)
{
{
init_single_partition_iterator
(
part_id
,
part_iter
);
init_single_partition_iterator
(
part_id
,
part_iter
);
return
1
;
/* Ok, iterator initialized */
return
1
;
/* Ok, iterator initialized */
...
...
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
679dbc76
...
@@ -12176,7 +12176,8 @@ void Dbdih::newCrashedReplica(Uint32 nodeId, ReplicaRecordPtr ncrReplicaPtr)
...
@@ -12176,7 +12176,8 @@ void Dbdih::newCrashedReplica(Uint32 nodeId, ReplicaRecordPtr ncrReplicaPtr)
/* THAT THE NEW REPLICA IS NOT STARTED YET AND REPLICA_LAST_GCI IS*/
/* THAT THE NEW REPLICA IS NOT STARTED YET AND REPLICA_LAST_GCI IS*/
/* SET TO -1 TO INDICATE THAT IT IS NOT DEAD YET. */
/* SET TO -1 TO INDICATE THAT IT IS NOT DEAD YET. */
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
arrGuard
(
ncrReplicaPtr
.
p
->
noCrashedReplicas
+
1
,
8
);
arrGuardErr
(
ncrReplicaPtr
.
p
->
noCrashedReplicas
+
1
,
8
,
NDBD_EXIT_MAX_CRASHED_REPLICAS
);
ncrReplicaPtr
.
p
->
replicaLastGci
[
ncrReplicaPtr
.
p
->
noCrashedReplicas
]
=
ncrReplicaPtr
.
p
->
replicaLastGci
[
ncrReplicaPtr
.
p
->
noCrashedReplicas
]
=
SYSFILE
->
lastCompletedGCI
[
nodeId
];
SYSFILE
->
lastCompletedGCI
[
nodeId
];
ncrReplicaPtr
.
p
->
noCrashedReplicas
=
ncrReplicaPtr
.
p
->
noCrashedReplicas
+
1
;
ncrReplicaPtr
.
p
->
noCrashedReplicas
=
ncrReplicaPtr
.
p
->
noCrashedReplicas
+
1
;
...
...
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