Commit 0f933dcd authored by Rich Prohaska's avatar Rich Prohaska

#264 tokuftdump should dump header with default args

parent f5f6f883
...@@ -249,11 +249,10 @@ static void dump_node(int fd, BLOCKNUM blocknum, FT ft) { ...@@ -249,11 +249,10 @@ static void dump_node(int fd, BLOCKNUM blocknum, FT ft) {
printf(" layout_version_read_from_disk=%d\n", n->layout_version_read_from_disk); printf(" layout_version_read_from_disk=%d\n", n->layout_version_read_from_disk);
printf(" build_id=%d\n", n->build_id); printf(" build_id=%d\n", n->build_id);
printf(" max_msn_applied_to_node_on_disk=%" PRId64 " (0x%" PRIx64 ")\n", n->max_msn_applied_to_node_on_disk.msn, n->max_msn_applied_to_node_on_disk.msn); printf(" max_msn_applied_to_node_on_disk=%" PRId64 " (0x%" PRIx64 ")\n", n->max_msn_applied_to_node_on_disk.msn, n->max_msn_applied_to_node_on_disk.msn);
printf("io time %lf decompress time %lf deserialize time %lf\n", printf(" io time %lf decompress time %lf deserialize time %lf\n",
tokutime_to_seconds(bfe.io_time), tokutime_to_seconds(bfe.io_time),
tokutime_to_seconds(bfe.decompress_time), tokutime_to_seconds(bfe.decompress_time),
tokutime_to_seconds(bfe.deserialize_time) tokutime_to_seconds(bfe.deserialize_time));
);
printf(" n_children=%d\n", n->n_children); printf(" n_children=%d\n", n->n_children);
printf(" pivotkeys.total_size()=%u\n", (unsigned) n->pivotkeys.total_size()); printf(" pivotkeys.total_size()=%u\n", (unsigned) n->pivotkeys.total_size());
...@@ -695,8 +694,9 @@ int main (int argc, const char *const argv[]) { ...@@ -695,8 +694,9 @@ int main (int argc, const char *const argv[]) {
} }
if (!do_header && !do_rootnode && !do_fragmentation && !do_translation_table && !do_garbage) { if (!do_header && !do_rootnode && !do_fragmentation && !do_translation_table && !do_garbage) {
printf("Block translation:"); printf("Block translation:");
toku_dump_translation_table(stdout, ft->blocktable); toku_dump_translation_table(stdout, ft->blocktable);
dump_header(ft);
struct __dump_node_extra info; struct __dump_node_extra info;
info.fd = fd; info.fd = fd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment