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
446f6331
Commit
446f6331
authored
Mar 31, 2003
by
ram@mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix: should use my_multi_malloc() here!!!
parent
f0155f6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
myisam/rt_split.c
myisam/rt_split.c
+7
-8
No files found.
myisam/rt_split.c
View file @
446f6331
...
...
@@ -264,16 +264,15 @@ int rtree_split_page(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key,
int
max_keys
=
(
mi_getint
(
page
)
-
2
)
/
(
full_length
);
n_dim
=
keyinfo
->
keysegs
/
2
;
if
(
!
my_multi_malloc
(
MYF
(
0
),
&
coord_buf
,
n_dim
*
2
*
sizeof
(
double
)
*
(
max_keys
+
1
+
4
),
&
task
,
sizeof
(
SplitStruct
)
*
(
max_keys
+
1
),
NullS
))
return
-
1
;
{
int
coord_buf_size
=
n_dim
*
2
*
sizeof
(
double
)
*
(
max_keys
+
1
+
4
);
coord_buf
=
my_alloca
(
coord_buf_size
+
sizeof
(
SplitStruct
)
*
(
max_keys
+
1
));
task
=
(
SplitStruct
*
)(((
char
*
)
coord_buf
)
+
coord_buf_size
);
}
next_coord
=
coord_buf
;
stop
=
task
+
max_keys
;
source_cur
=
rt_PAGE_FIRST_KEY
(
page
,
nod_flag
);
...
...
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