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
3c0a9bce
Commit
3c0a9bce
authored
Feb 13, 2014
by
John Esmet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs #145 capture the node's height before calling finalize(), which is
the last point we may read the node variable safely.
parent
3fe7781a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ft/ft-ops.cc
ft/ft-ops.cc
+2
-1
No files found.
ft/ft-ops.cc
View file @
3c0a9bce
...
@@ -1206,6 +1206,7 @@ int toku_ftnode_pe_callback(void *ftnode_pv, PAIR_ATTR old_attr, void *write_ext
...
@@ -1206,6 +1206,7 @@ int toku_ftnode_pe_callback(void *ftnode_pv, PAIR_ATTR old_attr, void *write_ext
exit:
exit:
// call the finalize callback with a new pair attr
// call the finalize callback with a new pair attr
int
height
=
node
->
height
;
PAIR_ATTR
new_attr
=
make_ftnode_pair_attr
(
node
);
PAIR_ATTR
new_attr
=
make_ftnode_pair_attr
(
node
);
finalize
(
new_attr
,
finalize_extra
);
finalize
(
new_attr
,
finalize_extra
);
...
@@ -1222,7 +1223,7 @@ int toku_ftnode_pe_callback(void *ftnode_pv, PAIR_ATTR old_attr, void *write_ext
...
@@ -1222,7 +1223,7 @@ int toku_ftnode_pe_callback(void *ftnode_pv, PAIR_ATTR old_attr, void *write_ext
}
}
// stats
// stats
if
(
num_partial_evictions
>
0
)
{
if
(
num_partial_evictions
>
0
)
{
if
(
node
->
height
==
0
)
{
if
(
height
==
0
)
{
long
delta
=
old_attr
.
leaf_size
-
new_attr
.
leaf_size
;
long
delta
=
old_attr
.
leaf_size
-
new_attr
.
leaf_size
;
STATUS_INC
(
FT_PARTIAL_EVICTIONS_LEAF
,
num_partial_evictions
);
STATUS_INC
(
FT_PARTIAL_EVICTIONS_LEAF
,
num_partial_evictions
);
STATUS_INC
(
FT_PARTIAL_EVICTIONS_LEAF_BYTES
,
delta
);
STATUS_INC
(
FT_PARTIAL_EVICTIONS_LEAF_BYTES
,
delta
);
...
...
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