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
7a2e9511
Commit
7a2e9511
authored
Jan 29, 2014
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refs Tokutek/ft-index#46 improve test coverage, minor formatting
parent
51d75f31
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
16 deletions
+12
-16
ft/ft-ops.cc
ft/ft-ops.cc
+1
-1
ft/ft_node-serialize.cc
ft/ft_node-serialize.cc
+1
-3
ft/memarena.cc
ft/memarena.cc
+1
-1
ft/tests/dmt-test2.cc
ft/tests/dmt-test2.cc
+8
-11
util/mempool.cc
util/mempool.cc
+1
-0
No files found.
ft/ft-ops.cc
View file @
7a2e9511
ft/ft_node-serialize.cc
View file @
7a2e9511
...
@@ -594,8 +594,6 @@ rebalance_ftnode_leaf(FTNODE node, unsigned int basementnodesize)
...
@@ -594,8 +594,6 @@ rebalance_ftnode_leaf(FTNODE node, unsigned int basementnodesize)
curr_pivot
++
;
curr_pivot
++
;
num_le_in_curr_bn
=
0
;
num_le_in_curr_bn
=
0
;
bn_size_so_far
=
0
;
bn_size_so_far
=
0
;
bn_le_sizes
[
curr_pivot
]
=
0
;
bn_key_sizes
[
curr_pivot
]
=
0
;
}
}
num_le_in_curr_bn
++
;
num_le_in_curr_bn
++
;
num_les_this_bn
[
curr_pivot
]
=
num_le_in_curr_bn
;
num_les_this_bn
[
curr_pivot
]
=
num_le_in_curr_bn
;
...
...
ft/memarena.cc
View file @
7a2e9511
ft/tests/dmt-test2.cc
View file @
7a2e9511
...
@@ -349,6 +349,10 @@ int
...
@@ -349,6 +349,10 @@ int
test_main
(
int
argc
,
const
char
*
argv
[])
{
test_main
(
int
argc
,
const
char
*
argv
[])
{
parse_args
(
argc
,
argv
);
parse_args
(
argc
,
argv
);
// Do test with size divisible by 4 and not
// Do test with size divisible by 4 and not
test_builder_fixed
(
4
,
0
);
test_builder_fixed
(
5
,
0
);
test_builder_fixed
(
4
,
1
);
test_builder_fixed
(
5
,
1
);
test_builder_fixed
(
4
,
100
);
test_builder_fixed
(
4
,
100
);
test_builder_fixed
(
5
,
100
);
test_builder_fixed
(
5
,
100
);
// Do test with zero, one, or both sizes divisible
// Do test with zero, one, or both sizes divisible
...
@@ -357,20 +361,13 @@ test_main(int argc, const char *argv[]) {
...
@@ -357,20 +361,13 @@ test_main(int argc, const char *argv[]) {
test_builder_variable
(
5
,
8
,
100
);
test_builder_variable
(
5
,
8
,
100
);
test_builder_variable
(
5
,
10
,
100
);
test_builder_variable
(
5
,
10
,
100
);
test_create_from_sorted_memory_of_fixed_sized_elements__and__serialize
(
4
,
0
);
test_create_from_sorted_memory_of_fixed_sized_elements__and__serialize
(
5
,
0
);
test_create_from_sorted_memory_of_fixed_sized_elements__and__serialize
(
4
,
1
);
test_create_from_sorted_memory_of_fixed_sized_elements__and__serialize
(
5
,
1
);
test_create_from_sorted_memory_of_fixed_sized_elements__and__serialize
(
4
,
100
);
test_create_from_sorted_memory_of_fixed_sized_elements__and__serialize
(
4
,
100
);
test_create_from_sorted_memory_of_fixed_sized_elements__and__serialize
(
5
,
100
);
test_create_from_sorted_memory_of_fixed_sized_elements__and__serialize
(
5
,
100
);
/*TODO
* insert
* insert_at
* delete_at
* iterate
* iterate_on_range
* verify
* iterate_ptr
* find_zero
* find
*/
return
0
;
return
0
;
}
}
util/mempool.cc
View file @
7a2e9511
...
@@ -184,6 +184,7 @@ size_t toku_mempool_get_size(const struct mempool *mp) {
...
@@ -184,6 +184,7 @@ size_t toku_mempool_get_size(const struct mempool *mp) {
}
}
// TODO(yoni): unify the toku_mempool_get*_size and toku_mempool_get*_space functions (use either size or space but not both)
// TODO(yoni): unify the toku_mempool_get*_size and toku_mempool_get*_space functions (use either size or space but not both)
// use _size for all
size_t
toku_mempool_get_frag_size
(
const
struct
mempool
*
mp
)
{
size_t
toku_mempool_get_frag_size
(
const
struct
mempool
*
mp
)
{
return
mp
->
frag_size
;
return
mp
->
frag_size
;
}
}
...
...
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