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
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(
{
unsigned
int
sizea
=
toku_serialize_ftnode_size
(
a
);
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.
*
did_merge
=
false
;
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);
enum
reactivity
get_nonleaf_reactivity
(
FTNODE
node
);
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
...
...
ft/ft-ops.cc
View file @
73b86e51
...
...
@@ -315,7 +315,7 @@ toku_assert_entire_node_in_memory(FTNODE UU() node) {
paranoid_invariant
(
is_entire_node_in_memory
(
node
));
}
static
uint32_t
uint32_t
get_leaf_num_entries
(
FTNODE
node
)
{
uint32_t
result
=
0
;
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