Skip to content
Permalink
Browse files
Fix some integer type mismatch in innochecksum
  • Loading branch information
dr-m committed May 26, 2017
1 parent 3b68515 commit acea8b5
Showing 1 changed file with 9 additions and 5 deletions.
@@ -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\tdata_size\tn_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(

0 comments on commit acea8b5

Please sign in to comment.