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
3f5f1b51
Commit
3f5f1b51
authored
Feb 05, 2008
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump some header flags. addresses #333
git-svn-id:
file:///svn/tokudb@2101
c7de825b-a66e-492c-adef-691d508d4ae1
parent
228e655d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
cxx/tests/db_dump.cpp
cxx/tests/db_dump.cpp
+17
-6
No files found.
cxx/tests/db_dump.cpp
View file @
3f5f1b51
...
...
@@ -30,6 +30,18 @@ int dbdump(char *dbfile, char *dbname) {
return
1
;
}
u_int32_t
dbflags
;
r
=
db
.
get_flags
(
&
dbflags
);
assert
(
r
==
0
);
if
(
dbflags
&
DB_DUP
)
printf
(
"duplicates=1
\n
"
);
if
(
dbflags
&
DB_DUPSORT
)
printf
(
"dupsort=1
\n
"
);
#if 0
u_int32_t nodesize;
r = db.get_nodesize(&nodesize); assert(r == 0);
printf("nodesize=%d\n", nodesize);
#endif
Dbc
*
cursor
;
r
=
db
.
cursor
(
0
,
&
cursor
,
0
);
assert
(
r
==
0
);
...
...
@@ -60,25 +72,24 @@ int usage() {
}
int
main
(
int
argc
,
char
*
argv
[])
{
int
i
;
char
*
dbname
=
0
;
int
i
;
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
char
*
arg
=
argv
[
i
];
if
(
0
==
strcmp
(
arg
,
"-h"
)
||
0
==
strcmp
(
arg
,
"--help"
))
return
usage
();
if
(
0
==
strcmp
(
arg
,
"-s"
))
{
i
++
;
if
(
i
>=
argc
)
if
(
i
+
1
>=
argc
)
return
usage
();
dbname
=
argv
[
i
];
dbname
=
argv
[
++
i
];
continue
;
}
break
;
}
if
(
i
>=
argc
)
return
usage
();
return
dbdump
(
argv
[
i
],
dbname
);
}
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