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
7762b38d
Commit
7762b38d
authored
Nov 11, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for HEAP rb-tree indexes and BIG_TABLES problem (serg: thanks for discovery)
parent
6e1cdfb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/my_tree.h
include/my_tree.h
+1
-1
mysys/tree.c
mysys/tree.c
+2
-2
No files found.
include/my_tree.h
View file @
7762b38d
...
...
@@ -91,7 +91,7 @@ void *tree_search_edge(TREE *tree, TREE_ELEMENT **parents,
TREE_ELEMENT
***
last_pos
,
int
child_offs
);
void
*
tree_search_next
(
TREE
*
tree
,
TREE_ELEMENT
***
last_pos
,
int
l_offs
,
int
r_offs
);
uint
tree_record_pos
(
TREE
*
tree
,
const
void
*
key
,
ha_rows
tree_record_pos
(
TREE
*
tree
,
const
void
*
key
,
enum
ha_rkey_function
search_flag
,
void
*
custom_arg
);
#ifdef __cplusplus
}
...
...
mysys/tree.c
View file @
7762b38d
...
...
@@ -439,14 +439,14 @@ void *tree_search_next(TREE *tree, TREE_ELEMENT ***last_pos, int l_offs,
Expected that tree is fully balanced
(each path from root to leaf has the same length)
*/
uint
tree_record_pos
(
TREE
*
tree
,
const
void
*
key
,
ha_rows
tree_record_pos
(
TREE
*
tree
,
const
void
*
key
,
enum
ha_rkey_function
flag
,
void
*
custom_arg
)
{
int
cmp
;
TREE_ELEMENT
*
element
=
tree
->
root
;
double
left
=
1
;
double
right
=
tree
->
elements_in_tree
;
uint
last_equal_pos
=
HA_POS_ERROR
;
ha_rows
last_equal_pos
=
HA_POS_ERROR
;
while
(
element
!=
&
tree
->
null_element
)
{
...
...
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