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
645a93f3
Commit
645a93f3
authored
Sep 05, 2007
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
txn
git-svn-id:
file:///svn/tokudb@254
c7de825b-a66e-492c-adef-691d508d4ae1
parent
33bbdbc6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
buildheader/make_db_h.c
buildheader/make_db_h.c
+6
-1
buildheader/sample_offsets.c
buildheader/sample_offsets.c
+1
-0
buildheader/sample_offsets_32.h
buildheader/sample_offsets_32.h
+5
-0
No files found.
buildheader/make_db_h.c
View file @
645a93f3
...
...
@@ -31,8 +31,10 @@ void print_struct (const char *structname, int need_internal, struct fieldinfo *
unsigned
int
current_64
=
0
;
int
dummy_counter
=
0
;
int
did_toku_internal
=
0
;
// int total32 = fields32[N-1].size;
// int total64 = fields32[N-1].size;
printf
(
"struct __toku_%s {
\n
"
,
structname
);
for
(
i
=
0
;
i
<
N
;
i
++
)
{
for
(
i
=
0
;
i
<
N
-
1
;
i
++
)
{
unsigned
int
this_32
=
fields32
[
i
].
off
;
unsigned
int
this_64
=
fields64
[
i
].
off
;
assert
(
strcmp
(
fields32
[
i
].
decl
,
fields64
[
i
].
decl
)
==
0
);
...
...
@@ -86,6 +88,9 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__un
assert
(
sizeof
(
dbt_fields32
)
==
sizeof
(
dbt_fields64
));
print_struct
(
"dbt"
,
0
,
dbt_fields32
,
dbt_fields64
,
sizeof
(
dbt_fields32
)
/
sizeof
(
dbt_fields32
[
0
]));
assert
(
sizeof
(
db_txn_fields32
)
==
sizeof
(
db_txn_fields64
));
print_struct
(
"db_txn"
,
0
,
db_txn_fields32
,
db_txn_fields64
,
sizeof
(
db_txn_fields32
)
/
sizeof
(
db_txn_fields32
[
0
]));
printf
(
"#if defined(__cplusplus)
\n
}
\n
#endif
\n
"
);
printf
(
"#endif
\n
"
);
return
0
;
...
...
buildheader/sample_offsets.c
View file @
645a93f3
...
...
@@ -91,5 +91,6 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__un
fprintf
(
outf
,
"/* BDB offsets on a %d-bit machine */
\n
"
,
__WORDSIZE
);
sample_db_offsets
();
sample_dbt_offsets
();
sample_db_txn_offsets
();
return
0
;
}
buildheader/sample_offsets_32.h
View file @
645a93f3
...
...
@@ -23,3 +23,8 @@ struct fieldinfo dbt_fields32[] = {
{
"u_int32_t flags"
,
24
,
4
},
{
0
,
0
,
28
}
/* size of whole struct */
};
struct
fieldinfo
db_txn_fields32
[]
=
{
{
"int (*commit) (DB_TXN*, u_int32_t)"
,
80
,
4
},
{
"u_int32_t (*id) (DB_TXN *)"
,
88
,
4
},
{
0
,
0
,
104
}
/* 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