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
73b86e51
Commit
73b86e51
authored
Apr 17, 2013
by
Zardosht Kasheff
Committed by
Yoni Fogel
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs #6300, fix on main
git-svn-id:
file:///svn/toku/tokudb@54569
c7de825b-a66e-492c-adef-691d508d4ae1
parent
847c1664
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
ft/ft-flusher.cc
ft/ft-flusher.cc
+2
-1
ft/ft-internal.h
ft/ft-internal.h
+1
-0
ft/ft-ops.cc
ft/ft-ops.cc
+1
-1
No files found.
ft/ft-flusher.cc
View file @
73b86e51
...
@@ -1220,7 +1220,8 @@ maybe_merge_pinned_leaf_nodes(
...
@@ -1220,7 +1220,8 @@ maybe_merge_pinned_leaf_nodes(
{
{
unsigned
int
sizea
=
toku_serialize_ftnode_size
(
a
);
unsigned
int
sizea
=
toku_serialize_ftnode_size
(
a
);
unsigned
int
sizeb
=
toku_serialize_ftnode_size
(
b
);
unsigned
int
sizeb
=
toku_serialize_ftnode_size
(
b
);
if
((
sizea
+
sizeb
)
*
4
>
(
nodesize
*
3
))
{
uint32_t
num_leafentries
=
get_leaf_num_entries
(
a
)
+
get_leaf_num_entries
(
b
);
if
(
num_leafentries
>
1
&&
(
sizea
+
sizeb
)
*
4
>
(
nodesize
*
3
))
{
// the combined size is more than 3/4 of a node, so don't merge them.
// the combined size is more than 3/4 of a node, so don't merge them.
*
did_merge
=
false
;
*
did_merge
=
false
;
if
(
sizea
*
4
>
nodesize
&&
sizeb
*
4
>
nodesize
)
{
if
(
sizea
*
4
>
nodesize
&&
sizeb
*
4
>
nodesize
)
{
...
...
ft/ft-internal.h
View file @
73b86e51
...
@@ -155,6 +155,7 @@ bool toku_ft_nonleaf_is_gorged(FTNODE node, uint32_t nodesize);
...
@@ -155,6 +155,7 @@ bool toku_ft_nonleaf_is_gorged(FTNODE node, uint32_t nodesize);
enum
reactivity
get_nonleaf_reactivity
(
FTNODE
node
);
enum
reactivity
get_nonleaf_reactivity
(
FTNODE
node
);
enum
reactivity
get_node_reactivity
(
FTNODE
node
,
uint32_t
nodesize
);
enum
reactivity
get_node_reactivity
(
FTNODE
node
,
uint32_t
nodesize
);
uint32_t
get_leaf_num_entries
(
FTNODE
node
);
// data of an available partition of a leaf ftnode
// data of an available partition of a leaf ftnode
...
...
ft/ft-ops.cc
View file @
73b86e51
...
@@ -315,7 +315,7 @@ toku_assert_entire_node_in_memory(FTNODE UU() node) {
...
@@ -315,7 +315,7 @@ toku_assert_entire_node_in_memory(FTNODE UU() node) {
paranoid_invariant
(
is_entire_node_in_memory
(
node
));
paranoid_invariant
(
is_entire_node_in_memory
(
node
));
}
}
static
uint32_t
uint32_t
get_leaf_num_entries
(
FTNODE
node
)
{
get_leaf_num_entries
(
FTNODE
node
)
{
uint32_t
result
=
0
;
uint32_t
result
=
0
;
int
i
;
int
i
;
...
...
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