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
b3f2c431
Commit
b3f2c431
authored
Oct 15, 2007
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add verify
git-svn-id:
file:///svn/tokudb@456
c7de825b-a66e-492c-adef-691d508d4ae1
parent
2c00b55e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
18 deletions
+21
-18
buildheader/sample_offsets.c
buildheader/sample_offsets.c
+19
-18
buildheader/sample_offsets_32_4_1.h
buildheader/sample_offsets_32_4_1.h
+1
-0
buildheader/sample_offsets_32_4_3.h
buildheader/sample_offsets_32_4_3.h
+1
-0
No files found.
buildheader/sample_offsets.c
View file @
b3f2c431
...
...
@@ -102,19 +102,20 @@ void sample_db_lsn_offsets (void) {
void
sample_db_offsets
(
void
)
{
/* Do these in alphabetical order. */
field_counter
=
0
;
STRUCT_SETUP
(
DB
,
app_private
,
"void *%s"
);
STRUCT_SETUP
(
DB
,
close
,
"int (*%s) (DB*, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
cursor
,
"int (*%s) (DB *, DB_TXN *, DBC **, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
del
,
"int (*%s) (DB *, DB_TXN *, DBT *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
get
,
"int (*%s) (DB *, DB_TXN *, DBT *, DBT *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
key_range
,
"int (*%s) (DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
open
,
"int (*%s) (DB *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int)"
);
STRUCT_SETUP
(
DB
,
put
,
"int (*%s) (DB *, DB_TXN *, DBT *, DBT *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
remove
,
"int (*%s) (DB *, const char *, const char *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
rename
,
"int (*%s) (DB *, const char *, const char *, const char *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
set_bt_compare
,
"int (*%s) (DB *, int (*)(DB *, const DBT *, const DBT *))"
);
STRUCT_SETUP
(
DB
,
set_flags
,
"int (*%s) (DB *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
stat
,
"int (*%s) (DB *, void *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
app_private
,
"void *%s"
);
STRUCT_SETUP
(
DB
,
close
,
"int (*%s) (DB*, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
cursor
,
"int (*%s) (DB *, DB_TXN *, DBC **, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
del
,
"int (*%s) (DB *, DB_TXN *, DBT *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
get
,
"int (*%s) (DB *, DB_TXN *, DBT *, DBT *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
key_range
,
"int (*%s) (DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
open
,
"int (*%s) (DB *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int)"
);
STRUCT_SETUP
(
DB
,
put
,
"int (*%s) (DB *, DB_TXN *, DBT *, DBT *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
remove
,
"int (*%s) (DB *, const char *, const char *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
rename
,
"int (*%s) (DB *, const char *, const char *, const char *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
set_bt_compare
,
"int (*%s) (DB *, int (*)(DB *, const DBT *, const DBT *))"
);
STRUCT_SETUP
(
DB
,
set_flags
,
"int (*%s) (DB *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
stat
,
"int (*%s) (DB *, void *, u_int32_t)"
);
STRUCT_SETUP
(
DB
,
verify
,
"int (*%s) (DB *, const char *, const char *, FILE *, u_int32_t)"
);
sort_and_dump_fields
(
"db"
,
sizeof
(
DB
));
}
...
...
@@ -151,12 +152,12 @@ void sample_dbc_offsets (void) {
void
sample_dbt_offsets
(
void
)
{
field_counter
=
0
;
#if DB_VERSION_MAJOR==4 && DB_VERSION_MINOR==1
STRUCT_SETUP
(
DBT
,
app_private
,
"void*%s"
);
STRUCT_SETUP
(
DBT
,
app_private
,
"void*%s"
);
#endif
STRUCT_SETUP
(
DBT
,
data
,
"void*%s"
);
STRUCT_SETUP
(
DBT
,
flags
,
"u_int32_t %s"
);
STRUCT_SETUP
(
DBT
,
size
,
"u_int32_t %s"
);
STRUCT_SETUP
(
DBT
,
ulen
,
"u_int32_t %s"
);
STRUCT_SETUP
(
DBT
,
data
,
"void*%s"
);
STRUCT_SETUP
(
DBT
,
flags
,
"u_int32_t %s"
);
STRUCT_SETUP
(
DBT
,
size
,
"u_int32_t %s"
);
STRUCT_SETUP
(
DBT
,
ulen
,
"u_int32_t %s"
);
sort_and_dump_fields
(
"dbt"
,
sizeof
(
DBT
));
}
...
...
buildheader/sample_offsets_32_4_1.h
View file @
b3f2c431
...
...
@@ -52,6 +52,7 @@ struct fieldinfo db_fields32[] = {
{
"int (*rename) (DB *, const char *, const char *, const char *, u_int32_t)"
,
332
,
4
},
{
"int (*set_flags) (DB *, u_int32_t)"
,
380
,
4
},
{
"int (*stat) (DB *, void *, u_int32_t)"
,
396
,
4
},
{
"int (*verify) (DB *, const char *, const char *, FILE *, u_int32_t)"
,
408
,
4
},
{
"int (*set_bt_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))"
,
412
,
4
},
{
0
,
484
,
484
}
/* size of whole struct */
};
...
...
buildheader/sample_offsets_32_4_3.h
View file @
b3f2c431
...
...
@@ -52,6 +52,7 @@ struct fieldinfo db_fields32[] = {
{
"int (*rename) (DB *, const char *, const char *, const char *, u_int32_t)"
,
380
,
4
},
{
"int (*set_flags) (DB *, u_int32_t)"
,
424
,
4
},
{
"int (*stat) (DB *, void *, u_int32_t)"
,
452
,
4
},
{
"int (*verify) (DB *, const char *, const char *, FILE *, u_int32_t)"
,
468
,
4
},
{
"int (*set_bt_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))"
,
476
,
4
},
{
0
,
580
,
580
}
/* size of whole struct */
};
...
...
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