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
94b7c07d
Commit
94b7c07d
authored
Nov 30, 2012
by
John Esmet
Committed by
Yoni Fogel
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs #5710 fix typos! oops
git-svn-id:
file:///svn/toku/tokudb@50560
c7de825b-a66e-492c-adef-691d508d4ae1
parent
42fe33bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ft/ft-internal.h
ft/ft-internal.h
+1
-1
ft/ft_node-serialize.cc
ft/ft_node-serialize.cc
+4
-4
No files found.
ft/ft-internal.h
View file @
94b7c07d
...
...
@@ -529,7 +529,7 @@ int toku_serialize_ftnode_to_memory (FTNODE node,
bool
do_rebalancing
,
bool
in_parallel
,
/*out*/
size_t
*
n_bytes_to_write
,
/*out*/
size_t
*
n_uncompresed_bytes
,
/*out*/
size_t
*
n_uncompres
s
ed_bytes
,
/*out*/
char
**
bytes_to_write
);
int
toku_serialize_ftnode_to
(
int
fd
,
BLOCKNUM
,
FTNODE
node
,
FTNODE_DISK_DATA
*
ndd
,
bool
do_rebalancing
,
FT
h
,
bool
for_checkpoint
);
int
toku_serialize_rollback_log_to
(
int
fd
,
ROLLBACK_LOG_NODE
log
,
SERIALIZED_ROLLBACK_LOG_NODE
serialized_log
,
bool
is_serialized
,
...
...
ft/ft_node-serialize.cc
View file @
94b7c07d
...
...
@@ -762,7 +762,7 @@ toku_serialize_ftnode_to_memory (FTNODE node,
bool
do_rebalancing
,
bool
in_parallel
,
// for loader is true, for toku_ftnode_flush_callback, is false
/*out*/
size_t
*
n_bytes_to_write
,
/*out*/
size_t
*
n_uncompresed_bytes
,
/*out*/
size_t
*
n_uncompres
s
ed_bytes
,
/*out*/
char
**
bytes_to_write
)
{
toku_assert_entire_node_in_memory
(
node
);
...
...
@@ -807,10 +807,10 @@ toku_serialize_ftnode_to_memory (FTNODE node,
// size of header + disk size of the n+1 sub_block's created above
uint32_t
total_node_size
=
(
serialize_node_header_size
(
node
)
// uncompressed header
+
sb_node_info
.
compressed_size
// compressed nodeinfo (without its checksum)
+
4
);
// nod
ine
fo's checksum
+
4
);
// nod
ein
fo's checksum
uint32_t
total_uncompressed_size
=
(
serialize_node_header_size
(
node
)
// uncompressed header
+
sb_node_info
.
uncompressed_size
// uncompressed nodeinfo (without its checksum)
+
4
);
// nod
ine
fo's checksum
+
4
);
// nod
ein
fo's checksum
// store the BP_SIZESs
for
(
int
i
=
0
;
i
<
node
->
n_children
;
i
++
)
{
uint32_t
len
=
sb
[
i
].
compressed_size
+
4
;
// data and checksum
...
...
@@ -848,7 +848,7 @@ toku_serialize_ftnode_to_memory (FTNODE node,
assert
(
curr_ptr
-
data
==
total_node_size
);
*
bytes_to_write
=
data
;
*
n_bytes_to_write
=
total_node_size
;
*
n_uncompresed_bytes
=
total_uncompressed_size
;
*
n_uncompres
s
ed_bytes
=
total_uncompressed_size
;
//
// now that node has been serialized, go through sub_block's and free
...
...
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