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
20bb869a
Commit
20bb869a
authored
Apr 25, 2008
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
brt2.c undo
git-svn-id:
file:///svn/tokudb@3652
c7de825b-a66e-492c-adef-691d508d4ae1
parent
0e863f75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
newbrt/brt2.c
newbrt/brt2.c
+0
-5
No files found.
newbrt/brt2.c
View file @
20bb869a
...
@@ -828,8 +828,6 @@ int toku_brt_create(BRT *brt_ptr) {
...
@@ -828,8 +828,6 @@ int toku_brt_create(BRT *brt_ptr) {
brt
->
nodesize
=
BRT_DEFAULT_NODE_SIZE
;
brt
->
nodesize
=
BRT_DEFAULT_NODE_SIZE
;
brt
->
compare_fun
=
toku_default_compare_fun
;
brt
->
compare_fun
=
toku_default_compare_fun
;
brt
->
dup_compare
=
toku_default_compare_fun
;
brt
->
dup_compare
=
toku_default_compare_fun
;
int
r
=
toku_omt_create
(
&
brt
->
txns
);
if
(
r
!=
0
)
{
toku_free
(
brt
);
return
r
;
}
*
brt_ptr
=
brt
;
*
brt_ptr
=
brt
;
return
0
;
return
0
;
}
}
...
@@ -1105,7 +1103,6 @@ int toku_open_brt (const char *fname, const char *dbname, int is_create, BRT *ne
...
@@ -1105,7 +1103,6 @@ int toku_open_brt (const char *fname, const char *dbname, int is_create, BRT *ne
r
=
toku_brt_open
(
brt
,
fname
,
fname
,
dbname
,
is_create
,
only_create
,
load_flags
,
cachetable
,
txn
,
db
);
r
=
toku_brt_open
(
brt
,
fname
,
fname
,
dbname
,
is_create
,
only_create
,
load_flags
,
cachetable
,
txn
,
db
);
if
(
r
!=
0
)
{
if
(
r
!=
0
)
{
toku_omt_destroy
(
&
brt
->
txns
);
toku_free
(
brt
);
toku_free
(
brt
);
return
r
;
return
r
;
}
}
...
@@ -1129,8 +1126,6 @@ int toku_close_brt (BRT brt) {
...
@@ -1129,8 +1126,6 @@ int toku_close_brt (BRT brt) {
if
(
brt
->
database_name
)
toku_free
(
brt
->
database_name
);
if
(
brt
->
database_name
)
toku_free
(
brt
->
database_name
);
if
(
brt
->
skey
)
{
toku_free
(
brt
->
skey
);
}
if
(
brt
->
skey
)
{
toku_free
(
brt
->
skey
);
}
if
(
brt
->
sval
)
{
toku_free
(
brt
->
sval
);
}
if
(
brt
->
sval
)
{
toku_free
(
brt
->
sval
);
}
assert
(
toku_omt_size
(
brt
->
txns
)
==
0
);
toku_omt_destroy
(
&
brt
->
txns
);
toku_free
(
brt
);
toku_free
(
brt
);
return
0
;
return
0
;
}
}
...
...
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