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
080f8230
Commit
080f8230
authored
Dec 05, 2007
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of memory leaks. Addresses #27.
git-svn-id:
file:///svn/tokudb@946
c7de825b-a66e-492c-adef-691d508d4ae1
parent
ba1bd129
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
newbrt/recover.c
newbrt/recover.c
+6
-2
No files found.
newbrt/recover.c
View file @
080f8230
...
...
@@ -94,7 +94,7 @@ static void toku_recover_newbrtnode (struct logtype_newbrtnode *c) {
n
->
parent_brtnode
=
0
;
n
->
height
=
c
->
height
;
n
->
rand4fingerprint
=
c
->
rand4fingerprint
;
// !!! is_dup_sort is not stored in the log !!!
n
->
flags
=
c
->
is_dup_sort
?
TOKU_DB_DUPSORT
:
0
;
// Don't have TOKU_DB_DUP ???
n
->
local_fingerprint
=
0
;
// nothing there yet
n
->
dirty
=
1
;
if
(
c
->
height
==
0
)
{
...
...
@@ -158,6 +158,8 @@ static void toku_recover_insertinleaf (struct logtype_insertinleaf *c) {
r
=
toku_cachetable_unpin
(
cf
,
c
->
diskoff
,
1
,
toku_serialize_brtnode_size
(
node
));
assert
(
r
==
0
);
toku_free
(
c
->
key
.
data
);
toku_free
(
c
->
data
.
data
);
}
static
void
toku_recover_resizepma
(
struct
logtype_resizepma
*
c
)
{
...
...
@@ -203,6 +205,8 @@ static void toku_recover_pmadistribute (struct logtype_pmadistribute *c) {
r
=
toku_cachetable_unpin
(
cf
,
c
->
diskoff
,
1
,
toku_serialize_brtnode_size
(
node
));
assert
(
r
==
0
);
toku_free
(
c
->
fromto
.
array
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
@@ -224,7 +228,7 @@ int main (int argc, char *argv[]) {
r
=
toku_read_and_print_logmagic
(
f
,
&
version
);
assert
(
r
==
0
&&
version
==
0
);
while
((
r
=
toku_log_fread
(
f
,
&
le
))
==
0
)
{
printf
(
"%lld: Got cmd %c
\n
"
,
le
.
u
.
commit
.
lsn
.
lsn
,
le
.
cmd
);
//
printf("%lld: Got cmd %c\n", le.u.commit.lsn.lsn, le.cmd);
logtype_dispatch
(
le
,
toku_recover_
);
}
if
(
r
!=
EOF
)
{
...
...
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