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
113e1704
Commit
113e1704
authored
Jun 17, 2014
by
John Esmet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FT-271 Fix more signed/unsigned comparisons
parent
f547318e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
ft/tests/ft-clock-test.cc
ft/tests/ft-clock-test.cc
+2
-2
ft/tests/ft-serialize-benchmark.cc
ft/tests/ft-serialize-benchmark.cc
+2
-2
ft/tests/ft-serialize-test.cc
ft/tests/ft-serialize-test.cc
+12
-12
No files found.
ft/tests/ft-clock-test.cc
View file @
113e1704
...
@@ -371,10 +371,10 @@ test_serialize_nonleaf(void) {
...
@@ -371,10 +371,10 @@ test_serialize_nonleaf(void) {
DISKOFF
offset
;
DISKOFF
offset
;
DISKOFF
size
;
DISKOFF
size
;
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
size
==
100
);
assert
(
size
==
100
);
}
}
FTNODE_DISK_DATA
ndd
=
NULL
;
FTNODE_DISK_DATA
ndd
=
NULL
;
...
...
ft/tests/ft-serialize-benchmark.cc
View file @
113e1704
...
@@ -211,10 +211,10 @@ test_serialize_leaf(int valsize, int nelts, double entropy, int ser_runs, int de
...
@@ -211,10 +211,10 @@ test_serialize_leaf(int valsize, int nelts, double entropy, int ser_runs, int de
DISKOFF
offset
;
DISKOFF
offset
;
DISKOFF
size
;
DISKOFF
size
;
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
size
==
100
);
assert
(
size
==
100
);
}
}
...
...
ft/tests/ft-serialize-test.cc
View file @
113e1704
...
@@ -448,10 +448,10 @@ test_serialize_leaf_with_large_pivots(enum ftnode_verify_type bft, bool do_clone
...
@@ -448,10 +448,10 @@ test_serialize_leaf_with_large_pivots(enum ftnode_verify_type bft, bool do_clone
DISKOFF
offset
;
DISKOFF
offset
;
DISKOFF
size
;
DISKOFF
size
;
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
size
==
100
);
assert
(
size
==
100
);
}
}
FTNODE_DISK_DATA
src_ndd
=
NULL
;
FTNODE_DISK_DATA
src_ndd
=
NULL
;
...
@@ -574,10 +574,10 @@ test_serialize_leaf_with_many_rows(enum ftnode_verify_type bft, bool do_clone) {
...
@@ -574,10 +574,10 @@ test_serialize_leaf_with_many_rows(enum ftnode_verify_type bft, bool do_clone) {
DISKOFF
offset
;
DISKOFF
offset
;
DISKOFF
size
;
DISKOFF
size
;
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
size
==
100
);
assert
(
size
==
100
);
}
}
...
@@ -709,10 +709,10 @@ test_serialize_leaf_with_large_rows(enum ftnode_verify_type bft, bool do_clone)
...
@@ -709,10 +709,10 @@ test_serialize_leaf_with_large_rows(enum ftnode_verify_type bft, bool do_clone)
DISKOFF
offset
;
DISKOFF
offset
;
DISKOFF
size
;
DISKOFF
size
;
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
size
==
100
);
assert
(
size
==
100
);
}
}
...
@@ -845,10 +845,10 @@ test_serialize_leaf_with_empty_basement_nodes(enum ftnode_verify_type bft, bool
...
@@ -845,10 +845,10 @@ test_serialize_leaf_with_empty_basement_nodes(enum ftnode_verify_type bft, bool
DISKOFF
offset
;
DISKOFF
offset
;
DISKOFF
size
;
DISKOFF
size
;
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
size
==
100
);
assert
(
size
==
100
);
}
}
FTNODE_DISK_DATA
src_ndd
=
NULL
;
FTNODE_DISK_DATA
src_ndd
=
NULL
;
...
@@ -965,10 +965,10 @@ test_serialize_leaf_with_multiple_empty_basement_nodes(enum ftnode_verify_type b
...
@@ -965,10 +965,10 @@ test_serialize_leaf_with_multiple_empty_basement_nodes(enum ftnode_verify_type b
DISKOFF
offset
;
DISKOFF
offset
;
DISKOFF
size
;
DISKOFF
size
;
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
size
==
100
);
assert
(
size
==
100
);
}
}
...
@@ -1088,10 +1088,10 @@ test_serialize_nonleaf(enum ftnode_verify_type bft, bool do_clone) {
...
@@ -1088,10 +1088,10 @@ test_serialize_nonleaf(enum ftnode_verify_type bft, bool do_clone) {
DISKOFF
offset
;
DISKOFF
offset
;
DISKOFF
size
;
DISKOFF
size
;
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
toku_blocknum_realloc_on_disk
(
ft_h
->
blocktable
,
b
,
100
,
&
offset
,
ft_h
,
fd
,
false
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
toku_translate_blocknum_to_offset_size
(
ft_h
->
blocktable
,
b
,
&
offset
,
&
size
);
assert
(
offset
==
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
offset
==
(
DISKOFF
)
block_allocator
::
BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE
);
assert
(
size
==
100
);
assert
(
size
==
100
);
}
}
FTNODE_DISK_DATA
src_ndd
=
NULL
;
FTNODE_DISK_DATA
src_ndd
=
NULL
;
...
...
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