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
b2df5448
Commit
b2df5448
authored
Aug 03, 2015
by
Sreeharsha Ramanavarapu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mysql-5.1' into mysql-5.5
parents
18b2c777
8006ad80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
sql/opt_range.cc
sql/opt_range.cc
+12
-3
No files found.
sql/opt_range.cc
View file @
b2df5448
/* Copyright (c) 2000, 201
4
, Oracle and/or its affiliates. All rights
/* Copyright (c) 2000, 201
5
, Oracle and/or its affiliates. All rights
* reserved.
This program is free software; you can redistribute it and/or modify
...
...
@@ -3296,10 +3296,19 @@ int find_used_partitions(PART_PRUNE_PARAM *ppar, SEL_ARG *key_tree)
key_tree
->
min_flag
|
key_tree
->
max_flag
,
&
subpart_iter
);
DBUG_ASSERT
(
res
);
/* We can't get "no satisfying subpartitions" */
if
(
res
==
0
)
{
/*
The only case where we can get "no satisfying subpartitions"
returned from the above call is when an error has occurred.
*/
DBUG_ASSERT
(
range_par
->
thd
->
is_error
());
return
0
;
}
if
(
res
==
-
1
)
goto
pop_and_go_right
;
/* all subpartitions satisfy */
uint32
subpart_id
;
bitmap_clear_all
(
&
ppar
->
subparts_bitmap
);
while
((
subpart_id
=
subpart_iter
.
get_next
(
&
subpart_iter
))
!=
...
...
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