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
4906479f
Commit
4906479f
authored
Jul 26, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rec_buff should be initialized
parent
826a23b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
myisam/mi_check.c
myisam/mi_check.c
+4
-2
No files found.
myisam/mi_check.c
View file @
4906479f
...
...
@@ -1145,7 +1145,8 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
goto
err
;
info
->
opt_flag
|=
WRITE_CACHE_USED
;
if
(
!
(
sort_param
.
record
=
(
byte
*
)
my_malloc
((
uint
)
share
->
base
.
pack_reclength
,
MYF
(
0
))))
MYF
(
0
)))
||
!
mi_alloc_rec_buff
(
info
,
-
1
,
&
sort_param
.
rec_buff
))
{
mi_check_print_error
(
param
,
"Not enough memory for extra record"
);
goto
err
;
...
...
@@ -1809,7 +1810,8 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
info
->
rec_cache
.
file
=
info
->
dfile
;
/* for sort_delete_record */
if
(
!
(
sort_param
.
record
=
(
byte
*
)
my_malloc
((
uint
)
share
->
base
.
pack_reclength
,
MYF
(
0
))))
MYF
(
0
)))
||
!
mi_alloc_rec_buff
(
info
,
-
1
,
&
sort_param
.
rec_buff
))
{
mi_check_print_error
(
param
,
"Not enough memory for extra record"
);
goto
err
;
...
...
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