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
3bffb9de
Commit
3bffb9de
authored
Sep 10, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FT-592 add tokuftdump --node N parameter
parent
12bf3294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
tools/tokuftdump.cc
tools/tokuftdump.cc
+11
-1
No files found.
tools/tokuftdump.cc
View file @
3bffb9de
...
...
@@ -113,6 +113,8 @@ static int do_fragmentation = 0;
static
int
do_garbage
=
0
;
static
int
do_translation_table
=
0
;
static
int
do_rootnode
=
0
;
static
int
do_node
=
0
;
static
BLOCKNUM
do_node_num
;
static
int
do_tsv
=
0
;
static
const
char
*
arg0
;
...
...
@@ -612,12 +614,13 @@ static int usage(void) {
fprintf
(
stderr
,
"--dumpdata 0|1 "
);
fprintf
(
stderr
,
"--header "
);
fprintf
(
stderr
,
"--rootnode "
);
fprintf
(
stderr
,
"--node N "
);
fprintf
(
stderr
,
"--fragmentation "
);
fprintf
(
stderr
,
"--garbage "
);
fprintf
(
stderr
,
"--tsv "
);
fprintf
(
stderr
,
"--translation-table "
);
fprintf
(
stderr
,
"--tsv "
);
fprintf
(
stderr
,
"f
tf
ilename
\n
"
);
fprintf
(
stderr
,
"filename
\n
"
);
return
1
;
}
...
...
@@ -636,6 +639,10 @@ int main (int argc, const char *const argv[]) {
do_header
=
1
;
}
else
if
(
strcmp
(
argv
[
0
],
"--rootnode"
)
==
0
)
{
do_rootnode
=
1
;
}
else
if
(
strcmp
(
argv
[
0
],
"--node"
)
==
0
&&
argc
>
1
)
{
argc
--
;
argv
++
;
do_node
=
1
;
do_node_num
=
make_blocknum
(
getuint64
(
argv
[
0
]));
}
else
if
(
strcmp
(
argv
[
0
],
"--fragmentation"
)
==
0
)
{
do_fragmentation
=
1
;
}
else
if
(
strcmp
(
argv
[
0
],
"--garbage"
)
==
0
)
{
...
...
@@ -684,6 +691,9 @@ int main (int argc, const char *const argv[]) {
if
(
do_rootnode
)
{
dump_node
(
fd
,
ft
->
h
->
root_blocknum
,
ft
);
}
if
(
do_node
)
{
dump_node
(
fd
,
do_node_num
,
ft
);
}
if
(
do_fragmentation
)
{
dump_fragmentation
(
fd
,
ft
,
do_tsv
);
}
...
...
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