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
146344e9
Commit
146344e9
authored
Aug 20, 2013
by
zkasheff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #55, fix test
parent
a189ec77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
ft/tests/test-pick-child-to-flush.cc
ft/tests/test-pick-child-to-flush.cc
+9
-4
No files found.
ft/tests/test-pick-child-to-flush.cc
View file @
146344e9
...
@@ -303,7 +303,7 @@ doit (void) {
...
@@ -303,7 +303,7 @@ doit (void) {
assert
(
num_flushes_called
==
1
);
assert
(
num_flushes_called
==
1
);
toku_pin_node_with_min_bfe
(
&
node
,
node_internal
,
t
);
toku_pin_node_with_min_bfe
(
&
node
,
node_internal
,
t
);
assert
(
!
node
->
dirty
);
// nothing was flushed, so node better not b
e dirty
assert
(
node
->
dirty
);
// nothing was flushed, but since we were trying to flush to a leaf, both becom
e dirty
toku_assert_entire_node_in_memory
(
node
);
toku_assert_entire_node_in_memory
(
node
);
assert
(
node
->
n_children
==
2
);
assert
(
node
->
n_children
==
2
);
// both buffers should be empty now
// both buffers should be empty now
...
@@ -332,13 +332,18 @@ doit (void) {
...
@@ -332,13 +332,18 @@ doit (void) {
assert
(
num_flushes_called
==
2
);
assert
(
num_flushes_called
==
2
);
toku_pin_node_with_min_bfe
(
&
node
,
node_internal
,
t
);
toku_pin_node_with_min_bfe
(
&
node
,
node_internal
,
t
);
assert
(
!
node
->
dirty
);
// nothing was flushed, so node better not be dirty
assert
(
node
->
dirty
);
toku_unpin_ftnode
(
t
->
ft
,
node
);
toku_unpin_ftnode
(
t
->
ft
,
node
);
toku_pin_node_with_min_bfe
(
&
node
,
node_leaf
[
0
],
t
);
toku_pin_node_with_min_bfe
(
&
node
,
node_leaf
[
0
],
t
);
assert
(
!
node
->
dirty
);
// nothing was flushed, so node better not be dirty
assert
(
node
->
dirty
);
toku_unpin_ftnode
(
t
->
ft
,
node
);
toku_unpin_ftnode
(
t
->
ft
,
node
);
toku_pin_node_with_min_bfe
(
&
node
,
node_leaf
[
1
],
t
);
toku_pin_node_with_min_bfe
(
&
node
,
node_leaf
[
1
],
t
);
assert
(
!
node
->
dirty
);
// nothing was flushed, so node better not be dirty
if
(
i
==
0
)
{
assert
(
!
node
->
dirty
);
}
else
{
assert
(
node
->
dirty
);
}
toku_unpin_ftnode
(
t
->
ft
,
node
);
toku_unpin_ftnode
(
t
->
ft
,
node
);
}
}
...
...
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