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
acea8b5b
Commit
acea8b5b
authored
May 24, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some integer type mismatch in innochecksum
parent
3b68515b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
extra/innochecksum.cc
extra/innochecksum.cc
+9
-5
No files found.
extra/innochecksum.cc
View file @
acea8b5b
...
...
@@ -82,7 +82,7 @@ uintmax_t cur_page_num;
/* Skip the checksum verification. */
static
bool
no_check
;
/* Enabled for strict checksum verification. */
bool
strict_verify
=
0
;
bool
strict_verify
;
/* Enabled for rewrite checksum. */
static
bool
do_write
;
/* Mismatches count allowed (0 by default). */
...
...
@@ -280,7 +280,8 @@ void print_index_leaf_stats(
fprintf
(
fil_out
,
"page_no
\t
data_size
\t
n_recs
\n
"
);
while
(
it_page
!=
index
.
leaves
.
end
())
{
const
per_page_stats
&
stat
=
it_page
->
second
;
fprintf
(
fil_out
,
"%llu
\t
%lu
\t
%lu
\n
"
,
it_page
->
first
,
stat
.
data_size
,
stat
.
n_recs
);
fprintf
(
fil_out
,
"%llu
\t
"
ULINTPF
"
\t
"
ULINTPF
"
\n
"
,
it_page
->
first
,
stat
.
data_size
,
stat
.
n_recs
);
page_no
=
stat
.
right_page_no
;
it_page
=
index
.
leaves
.
find
(
page_no
);
}
...
...
@@ -315,12 +316,15 @@ void defrag_analysis(
}
if
(
index
.
leaf_pages
)
{
fprintf
(
fil_out
,
"count = %lu free = %lu
\n
"
,
index
.
count
,
index
.
free_pages
);
fprintf
(
fil_out
,
"count = "
ULINTPF
" free = "
ULINTPF
"
\n
"
,
index
.
count
,
index
.
free_pages
);
}
fprintf
(
fil_out
,
"%llu
\t\t
%llu
\t\t
%lu
\t\t
%lu
\t\t
%lu
\t\t
%.2f
\t
%lu
\n
"
,
fprintf
(
fil_out
,
"%llu
\t\t
%llu
\t\t
"
ULINTPF
"
\t\t
%lu
\t\t
"
ULINTPF
"
\t\t
%.2f
\t
"
ULINTPF
"
\n
"
,
id
,
index
.
leaf_pages
,
n_leaf_pages
,
n_merge
,
n_pages
,
1.0
-
(
double
)
n_pages
/
(
double
)
n_leaf_pages
,
index
.
max_data_size
);
1.0
-
(
double
)
n_pages
/
(
double
)
n_leaf_pages
,
index
.
max_data_size
);
}
void
print_leaf_stats
(
...
...
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