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
060e1568
Commit
060e1568
authored
Apr 16, 2013
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[t:2538] Fix memset usage
git-svn-id:
file:///svn/toku/tokudb@19553
c7de825b-a66e-492c-adef-691d508d4ae1
parent
4711f8df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
newbrt/brtloader.c
newbrt/brtloader.c
+1
-1
No files found.
newbrt/brtloader.c
View file @
060e1568
...
...
@@ -1371,7 +1371,7 @@ static int setup_nonleaf_block (int n_children,
if
((
r
=
bl_write_dbt
(
&
pivots
[
n_children
-
1
],
next_pivots_file
,
NULL
,
bl
)))
return
r
;
// The last pivot was written to the next_pivots file, so we free it now instead of returning it.
toku_free
(
pivots
[
n_children
-
1
].
data
);
memset
(
&
pivots
[
n_children
-
1
],
sizeof
(
DBT
),
0
);
memset
(
&
pivots
[
n_children
-
1
],
0
,
sizeof
(
DBT
)
);
struct
subtree_estimates
new_subtree_estimates
=
{.
nkeys
=
0
,
.
ndata
=
0
,
.
dsize
=
0
,
.
exact
=
TRUE
};
...
...
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