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
97d77b9e
Commit
97d77b9e
authored
Jun 15, 2014
by
John Esmet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FT-273 Fixup a bug and a few tests
parent
ac4e71ef
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ft/ft.cc
ft/ft.cc
+2
-1
ft/tests/ft-serialize-benchmark.cc
ft/tests/ft-serialize-benchmark.cc
+0
-1
ft/tests/ft-serialize-test.cc
ft/tests/ft-serialize-test.cc
+1
-1
No files found.
ft/ft.cc
View file @
97d77b9e
...
...
@@ -387,7 +387,8 @@ static void ft_init(FT ft, FT_OPTIONS options, CACHEFILE cf) {
toku_list_init
(
&
ft
->
live_ft_handles
);
ft
->
cmp
.
create
(
options
->
compare_fun
,
&
ft
->
descriptor
);
// intuitively, the comparator points to the FT's cmp descriptor
ft
->
cmp
.
create
(
options
->
compare_fun
,
&
ft
->
cmp_descriptor
);
ft
->
update_fun
=
options
->
update_fun
;
if
(
ft
->
cf
!=
NULL
)
{
...
...
ft/tests/ft-serialize-benchmark.cc
View file @
97d77b9e
...
...
@@ -420,7 +420,6 @@ test_serialize_nonleaf(int valsize, int nelts, double entropy, int ser_runs, int
toku_free
(
ft
);
toku_free
(
ndd
);
toku_free
(
ndd2
);
cmp
.
destroy
();
r
=
close
(
fd
);
assert
(
r
!=
-
1
);
}
...
...
ft/tests/ft-serialize-test.cc
View file @
97d77b9e
...
...
@@ -1125,12 +1125,12 @@ test_serialize_nonleaf(enum ftnode_verify_type bft, bool do_clone) {
toku_block_free
(
ft_h
->
blocktable
,
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
toku_blocktable_destroy
(
&
ft_h
->
blocktable
);
ft_h
->
cmp
.
destroy
();
toku_free
(
ft_h
->
h
);
toku_free
(
ft_h
);
toku_free
(
ft
);
toku_free
(
src_ndd
);
toku_free
(
dest_ndd
);
cmp
.
destroy
();
r
=
close
(
fd
);
assert
(
r
!=
-
1
);
}
...
...
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